[SciPy-user] removing certain dates from a time series

Pierre GM pgmdevlist@gmail....
Tue Apr 1 16:51:17 CDT 2008


> How to I remove the february 29 from my timeseries without affecting the
> dates after?

Don't remove the dates, just mask the corresponding data, as illustrated in 
the following

>>>import numpy
>>>from numpy.ma import masked
>>>import scikits.timeseries as ts

As long as your analysis functions deal w/ masked values in a nice way, you're 
set (for example, mean/sum/var all work well with masked values).

More information about the SciPy-user mailing list