def asfreq(self, freq, method=None, how=None): """ Convert all TimeSeries inside to specified frequency using DateOffset objects. Optionally provide fill method to pad/backfill missing values. Parameters ---------- freq : DateOffset object, or string 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 how : {'start', 'end'}, default end For PeriodIndex only, see PeriodIndex.asfreq Returns ------- converted : type of caller """ from pandas.tseries.resample import asfreq return asfreq(self, freq, method=method, how=how)
def asfreq(self, freq, method=None, how=None): """ Convert all TimeSeries inside to specified frequency using DateOffset objects. Optionally provide fill method to pad/backfill missing values. Parameters ---------- freq : DateOffset object, or string 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 how : {'start', 'end'}, default end For PeriodIndex only, see PeriodIndex.asfreq Returns ------- converted : type of caller """ from pandas.tseries.resample import asfreq return asfreq(self, freq, method=method, how=how)