[SciPy-User] failing to create a scikit.timeseries object
Wed Jun 2 14:03:18 CDT 2010
With just datetime data, you probably want to create a DateArray. I
think that second resolution is the highest frequency available (at
least that's what I see in the documentation).
Here's how to make a date array:
DateArray([01-Jan-2010 10:10:02, 01-Jan-2010 10:10:02],
I don't know if timeseries Date objects can resolve microsecond
On Jun 2, 2010, at 3:49 AM, Emanuele Rocci wrote:
> Hi All
> I am trying to create a scikit.timeseries object starting from 2
> datetime objects.
> If I understood correctly it should be possible to create a
> scikits.timeseries starting fromdatetime objects.
> I try the following code but it says that Insufficient parameters.
> The 2 datetime differs for few microseconds. In this case what
> should be the value for freq parameter?
> Is what I am trying allowed? In theory, since timeseries can be
> based on datetime objects it should be possible to hanlde up to
> microsecond , is this correct?
> I think that this is not really clear to me.
> Regards Eo
> import datetime
> import sckilits.timeseries as ts
> tm1 = datetime.datetime( 2010,1,1, 10,10,2, 123456 )
> tm2 = datetime.datetime( 2010,1,1, 10,10,2, 345678 )
> d = [ tm1, tm2 ]
> tseries = ts.time_series( dates=d )
> tseries = ts.time_series( d )
> SciPy-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User