Re: [Matplotlib-users] using strpdate2num in load

2007-12-18 Thread Emmanuel
Yes, I think strpdate2num is based on dateutil.parser.parse thast's why I tried dayfirst=True which is used with dateutil.parser.parse. It would be funny if from a list of string, it could be automatically try to decide between day/month/year, month/day/year format... (it´s a joke) --

Re: [Matplotlib-users] using strpdate2num in load

2007-12-18 Thread Lionel Roubeyrie
Hi Emmanuel, look at dateutil.parser.parse, there is exactly what you search. Le mardi 18 décembre 2007, Emmanuel a écrit : > Ok, thank you! > > I'm missing an option to (easily) use date that start with the day > day/month/year (it is the case in Brazil and France for example) > > I'm using somet

Re: [Matplotlib-users] using strpdate2num in load

2007-12-17 Thread Emmanuel
Ok, thank you! I'm missing an option to (easily) use date that start with the day day/month/year (it is the case in Brazil and France for example) I'm using something like tha date_Ymd="%s/%s/%s" % (datedayfirst.split('/')[2],datedayfirst.split ('/')[1],datedayfirst.split ('/')[0]) I was lookign

Re: [Matplotlib-users] using strpdate2num in load

2007-12-11 Thread John Hunter
On Dec 11, 2007 6:00 AM, Emmanuel <[EMAIL PROTECTED]> wrote: > Hi, > > I've a little problem with date conversion. I have a csv file which looks > like : > "Data","Valor" > "15/01/2007"," 6,700012000" > "12/01/2007"," 6,659903000" > > "11/01/2007"," 6,701586000" > > I try to get date using function

[Matplotlib-users] using strpdate2num in load

2007-12-11 Thread Emmanuel
Hi, I've a little problem with date conversion. I have a csv file which looks like : "Data","Valor" "15/01/2007"," 6,700012000" "12/01/2007"," 6,659903000" "11/01/2007"," 6,701586000" I try to get date using function strpdate2num in load doing this : from pylab import datestr2num, load def comma