pandas.api.extensions.ExtensionArray._reduce

pandas 3.1.1 · Extensions · method

Implement scalar or length-one aggregation for the extension array.

Call syntax

pd.api.extensions.ExtensionArray._reduce(name, *, skipna=True, keepdims=False, **kwargs)

Run the example

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

Parameters

ParameterRequirementAccepted values and behavior
name Required
Positional or keyword
str

Set a name or identify the named object used by the operation.

skipna Optional
Keyword only
Default True
bool

Choose whether to exclude missing values during the calculation.

keepdims Optional
Keyword only
Default False
bool
**kwargs Optional
Additional keyword arguments

Returns

scalar or ndarray