Re: [Tutor] Datetime Integer Array

2012-05-22 Thread Andreas Perstinger
On Mon, 21 May 2012 13:04:26 -0700 Jeremy Traurig wrote: > I have already tried creating a numpy array of integers using this > code: > > import time > time_format = %m/%d/%Y %H:%M:%S > for x in range(len(datetime_IN)): > junk = time.strptime(datetime[x],time_format) > junk2 = [y for y i

Re: [Tutor] Datetime Integer Array

2012-05-21 Thread Emile van Sebille
On 5/21/2012 1:04 PM Jeremy Traurig said... Hello, I am reading a data file with a string time stamp as the first column, example below: '03/10/2010 02:00:00' '03/10/2010 02:10:00' '03/10/2010 02:20:00' '03/10/2010 02:30:00' etc to n number of rows. I'm using the numpy function genfromtxt to r

[Tutor] Datetime Integer Array

2012-05-21 Thread Jeremy Traurig
Hello, I am reading a data file with a string time stamp as the first column, example below: '03/10/2010 02:00:00' '03/10/2010 02:10:00' '03/10/2010 02:20:00' '03/10/2010 02:30:00' etc to n number of rows. I'm using the numpy function genfromtxt to read this data: import numpy as np datetime_IN