pandas 0.7.0 documentation

pandas.Series.asfreq

Series.asfreq(freq, method=None)

Convert this TimeSeries to the provided frequency using DateOffset object or time rule. Optionally provide fill method to pad/backfill missing values.

Parameters :

offset : DateOffset object, or string in {‘WEEKDAY’, ‘EOM’}

DateOffset object or subclass (e.g. monthEnd)

method : {‘backfill’, ‘pad’, None}

Method to use for filling holes in new index

Returns :

converted : TimeSeries