Standalone functions for applying custom aggregation logic over sliding
windows, mirroring
pandas.Series.rolling().apply()
and
Rolling.agg()
.
Apply any aggregation function to each rolling window. The function receives the valid (non-null, non-NaN) numeric values in the window and must return a single number.
Apply several named aggregation functions in a single pass over a Series,
returning a DataFrame where each column holds one
aggregation result.
Apply a single custom function independently to each column of a DataFrame, returning a new DataFrame of the same shape.
Apply multiple named aggregation functions to every column of a
DataFrame. The result has columns named
{originalColumn}_{aggName}.