now i have the next problem. I wrote a script which imports some data from a *.txt file in a table from SciDavis.
My problem is, that the first column of the textfile is a date (e.g. "2009-10-21 12:42:30.924"). A whole row looks like this:
"2009-10-21 12:42:30.924,50.315498352051,NULL,NULL,0,0". Each column is seperated by ",".
When i import this with "importASCII()" the default type of a column in the table is numeric. But i need the first column as "Date and Time" and the others as "numeric".
Can someone help me please?
The way to do this is to set the correct format for the first column before importing. You can do this either by hand or using something like:
t = newTable("YourTable", 6, 1)
# import data as before
t.importASCII('your/data.txt', ',', 0, False, False, False, True)
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.