dask.dataframe.tseries.resample.Resampler

class dask.dataframe.tseries.resample.Resampler(obj, rule, **kwargs)[source]

Class for resampling timeseries data.

This class is commonly encountered when using obj.resample(...) which return Resampler objects.

Parameters
objDask DataFrame or Series

Data to be resampled.

rulestr, tuple, datetime.timedelta, DateOffset or None

The offset string or object representing the target conversion.

kwargsoptional

Keyword arguments passed to underlying pandas resampling function.

Returns
Resampler instance of the appropriate type
__init__(obj, rule, **kwargs)[source]

Methods

__init__(obj, rule, **kwargs)

agg(agg_funcs, *args, **kwargs)

Aggregate using one or more operations over the specified axis.

count()

Compute count of group, excluding missing values.

first()

Compute first of group values.

last()

Compute last of group values.

max()

Compute max of group values.

mean()

Compute mean of groups, excluding missing values.

median()

Compute median of groups, excluding missing values.

min()

Compute min of group values.

nunique()

Return number of unique elements in the group.

ohlc()

Compute open, high, low and close values of a group, excluding missing values.

prod()

Compute prod of group values.

quantile()

Return value at the given quantile.

sem()

Compute standard error of the mean of groups, excluding missing values.

size()

Compute group sizes.

std()

Compute standard deviation of groups, excluding missing values.

sum()

Compute sum of group values.

var()

Compute variance of groups, excluding missing values.