Table Of Contents

Search

Enter search terms or a module, class or function name.

Resampling

Resampler objects are returned by resample calls: pandas.DataFrame.resample(), pandas.Series.resample().

Indexing, iteration

Resampler.__iter__() Resampler iterator.
Resampler.groups Dict {group name -> group labels}.
Resampler.indices Dict {group name -> group indices}.
Resampler.get_group(name[, obj]) Constructs NDFrame from group with provided name.

Function application

Resampler.apply(func, *args, **kwargs) Aggregate using one or more operations over the specified axis.
Resampler.aggregate(func, *args, **kwargs) Aggregate using one or more operations over the specified axis.
Resampler.transform(arg, *args, **kwargs) Call function producing a like-indexed Series on each group and return a Series with the transformed values.
Resampler.pipe(func, *args, **kwargs) Apply a function func with arguments to this Resampler object and return the function’s result.

Upsampling

Resampler.ffill([limit]) Forward fill the values.
Resampler.backfill([limit]) Backward fill the new missing values in the resampled data.
Resampler.bfill([limit]) Backward fill the new missing values in the resampled data.
Resampler.pad([limit]) Forward fill the values.
Resampler.nearest([limit]) Resample by using the nearest value.
Resampler.fillna(method[, limit]) Fill missing values introduced by upsampling.
Resampler.asfreq([fill_value]) Return the values at the new freq, essentially a reindex.
Resampler.interpolate([method, axis, limit, …]) Interpolate values according to different methods.

Computations / Descriptive Stats

Resampler.count([_method]) Compute count of group, excluding missing values.
Resampler.nunique([_method]) Returns number of unique elements in the group
Resampler.first([_method]) Compute first of group values See Also ——– pandas.Series.groupby pandas.DataFrame.groupby pandas.Panel.groupby
Resampler.last([_method]) Compute last of group values See Also ——– pandas.Series.groupby pandas.DataFrame.groupby pandas.Panel.groupby
Resampler.max([_method]) Compute max of group values See Also ——– pandas.Series.groupby pandas.DataFrame.groupby pandas.Panel.groupby
Resampler.mean([_method]) Compute mean of groups, excluding missing values.
Resampler.median([_method]) Compute median of groups, excluding missing values.
Resampler.min([_method]) Compute min of group values See Also ——– pandas.Series.groupby pandas.DataFrame.groupby pandas.Panel.groupby
Resampler.ohlc([_method]) Compute sum of values, excluding missing values.
Resampler.prod([_method, min_count]) Compute prod of group values See Also ——– pandas.Series.groupby pandas.DataFrame.groupby pandas.Panel.groupby
Resampler.size() Compute group sizes.
Resampler.sem([_method]) Compute standard error of the mean of groups, excluding missing values.
Resampler.std([ddof]) Compute standard deviation of groups, excluding missing values.
Resampler.sum([_method, min_count]) Compute sum of group values See Also ——– pandas.Series.groupby pandas.DataFrame.groupby pandas.Panel.groupby
Resampler.var([ddof]) Compute variance of groups, excluding missing values.
Resampler.quantile([q]) Return value at the given quantile.
Scroll To Top