[SciPy-user] scikits.timeseries : Calculate previous 30 day and 30-60 day cumulative flows.
Tue Jul 14 12:48:06 CDT 2009
On Jul 14, 2009, at 1:23 PM, Dharhas Pothina wrote:
> 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'
Now that's a strange one. Send me more info (inflows_ts, version, ...)
> 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?
Not that I see right now.
More information about the SciPy-user