[SciPy-user] Number of periods in a year in scikits.timeseries

Pierre GM pgmdevlist@gmail....
Thu May 28 10:46:49 CDT 2009


On May 28, 2009, at 12:21 AM, Abiel Reinhart wrote:

> Is there an automated way to determine the number of periods in a year
> for a given frequency in scikits.timeseries?

Nope, not yet. A dictionary would probably do the trick, something  
along the lines of:
annmulti = {_c.FR_ANN:1.,
                 _c.FR_QTR:4.,
                 _c.FR_MTH:12.,
                 _c.FR_WK :365.25/7.,
                 _c.FR_DAY:365.25,
                 _c.FR_HR :8766.,
                 _c.FR_MIN:525960.,
                 _c.FR_SEC:31557600.}




More information about the SciPy-user mailing list