[SciPy-user] scikits.timeseries : Calculate previous 30 day and 30-60 day cumulative flows.

Dharhas Pothina Dharhas.Pothina at twdb.state.tx.us
Tue Jul 14 13:23:39 EDT 2009


Hi,

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?

thanks.

- dharhas




More information about the SciPy-User mailing list