pandas.api.extensions.register_dataframe_accessor

pandas 3.1.1 · Extensions · function

Decorate a class to expose it under a named attribute on DataFrame objects.

Call syntax

pd.api.extensions.register_dataframe_accessor(name)

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.

Returns

callable