[Tutor] New to Python

2012-05-17 Thread Jeremy Traurig
Hello, I very new to python and have been playing around with some simple code that I would eventually use in the real word. Below is the code I have created. I want the code to read data from a file called SIL633.txt and then output that data into another file called test.txt. below is my code:

[Tutor] Datetime Integers

2012-05-21 Thread Jeremy Traurig
Hello, Is there a module available for python to convert datetime into an array of integers. For example, I have date where the first column is a datetime string (i.e. '2010-10-10 01:10:00') and I would like to convert that into an array with 5 columns corresponding to the integer values of Year,M

[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