[SciPy-User] Pickling timeseries Dates

Pierre GM pgmdevlist@gmail....
Thu Dec 10 09:07:52 CST 2009

On Dec 10, 2009, at 9:41 AM, Robert Ferrell wrote:
> On Dec 10, 2009, at 7:27 AM, Pierre GM wrote:
>> On Dec 10, 2009, at 9:05 AM, Robert Ferrell wrote:
>>> IIRC, timeseries Date objects cannot be pickled.
>> Unfortunately, that's true. Gonna have to fix that. However,  
>> DateArrays and TimeSeries are pickable. You may want to put your  
>> Date in a single-element DateArray
> Great hint.  I had just assumed DateArrays and TimeSeries couldn't be  
> pickled because Dates can't be pickled.  This makes it all much  
> easier.  I've been str() single Date instances, which has been working  
> fine.  single-element DateArray is probably easier.

Note that there's a problem with pickling DateArrays: you lose the frequency at unpickling time. I gonna fix that ASAP. Pickling TimeSeries works quite fine, though (I used them a lot).

More information about the SciPy-User mailing list