pandas 0.7.3 documentation

pandas.DataFrame.asfreq

DataFrame.asfreq(freq, method=None)

Convert all TimeSeries inside to specified frequency using DateOffset objects. 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’, ‘bfill’, ‘pad’, ‘ffill’, None}

Method to use for filling holes in reindexed Series pad / ffill: propagate last valid observation forward to next valid backfill / bfill: use NEXT valid observation to fill methdo

Returns :

converted : DataFrame