Resampling
Resampler objects are returned by resample calls: pandas.DataFrame.resample(), pandas.Series.resample().
Indexing, iteration
Resampler.__iter__() |
Groupby 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(arg, *args, **kwargs) |
Apply aggregation function or functions to resampled groups, yielding |
Resampler.aggregate(arg, *args, **kwargs) |
Apply aggregation function or functions to resampled groups, yielding |
Resampler.transform(arg, *args, **kwargs) |
Call function producing a like-indexed Series on each group and return |
Upsampling
Resampler.ffill([limit]) |
Forward fill the values |
Resampler.backfill([limit]) |
Backward fill the values |
Resampler.bfill([limit]) |
Backward fill the values |
Resampler.pad([limit]) |
Forward fill the values |
Resampler.fillna(method[, limit]) |
Fill missing values |
Resampler.asfreq() |
return the values at the new freq, |
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 |
Resampler.last([_method]) |
Compute last of group values |
Resampler.max([_method]) |
Compute max of group values |
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 |
Resampler.ohlc([_method]) |
Compute sum of values, excluding missing values |
Resampler.prod([_method]) |
Compute prod of group values |
Resampler.size([_method]) |
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]) |
Compute sum of group values |
Resampler.var([ddof]) |
Compute variance of groups, excluding missing values |