pandas.api.typing.Resampler.apply

pandas 3.1.1 · Resampling · method

Run a callable over the units of the object, such as rows, columns, groups, or windows. The receiver controls which units it passes to the callable.

Call syntax

pd.api.typing.Resampler.apply(func=None, *args, **kwargs)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
func Optional
Positional or keyword
Default None
function, str, list or dict

Supply a supported operation name or a callable, depending on this API.

*args Optional
Additional positional arguments
**kwargs Optional
Additional keyword arguments

Returns

scalar, Series or DataFrame