[SciPy-user] scikits.timeseries: tsfromtxt

Pierre GM pgmdevlist@gmail....
Tue Jan 13 18:30:17 CST 2009



On Jan 13, 2009, at 6:29 PM, Tim Michelsen wrote:
>
> I used:
>
> data = ts.tsfromtxt('test.csv', datecols=(0,1), skiprows=1)
>
>
> Then got the error:
> TypeError: <lambda>() takes exactly 1 argument (2 given)
>
>
> A sample column of my data:
>
> 2009-01-14 12:00;	23;	46


I will assume that you mean row...
* First, your separator isn't a comma, but a semicolon. Use  
delimiter=";"
* Second, your date is actually only in the first column, so you  
should use datecols=0;
* Last, you don't need to define a converter for the dates in that  
case, as it should be recognized by the date parser. However, you  
should provide a freq argument, such freq="H"


More information about the SciPy-user mailing list