pandas.api.typing.Resampler.transform

pandas 3.1.1 · Resampling · method

Apply an operation and retain compatibility with the input shape. GroupBy aligns the result with the original rows.

Call syntax

pd.api.typing.Resampler.transform(arg, *args, **kwargs)

Run the example

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

Parameters

ParameterRequirementAccepted values and behavior
arg Required
Positional or keyword
function
*args Optional
Additional positional arguments
**kwargs Optional
Additional keyword arguments

Returns

Series