Table Of Contents

Previous topic

Arithmetic and comparison operations

Next topic

scikits.timeseries.TimeSeries.__float__

This Page

Conversion of TimeSeries

... to other frequencies

The following methods converts TimeSeries from one frequency to another.

TimeSeries.asfreq
TimeSeries.convert

Warning

Be careful not to confuse the two methods asfreq and convert.

  • asfreq simply takes every date in the dates attribute of the TimeSeries instance and changes it to the specified frequency, so the resulting series will have the same shape as the original series.
  • convert is a more complicated function that takes a series with no missing nor duplicated dates and creates a series at the new frequency with no missing nor duplicated dates and intelligently places the data from the original series into appropriate points in the new series.
convert
scikits.timeseries.extras.convert_to_annual