[SciPy-user] scikits.timeseries : Calculate previous 30 day and 30-60 day cumulative flows.
Tue Jul 14 12:23:39 CDT 2009
I have a daily timeseries called 'inflow_ts' and for each date in the series I need to calculate the cumulative inflow for the previous 30 days and the previous 30-60 days. From the documentation I think scikits.timeseries.lib.moving_funcs.mov_sum should do what I need for the first case using
inflow_30 = mov_sum(inflow_ts,30)
but this throws an 'AttributeError : logical_not'
Also, how would I calculate the 30-60 day flow. I guess, I could calculate the previous 60 day flow and subtract the 30 day flow. Is there a better way?
More information about the SciPy-user