pandas.api.extensions.register_extension_dtype

pandas 3.1.1 · Extensions · function

Register a custom ExtensionDtype so pandas can recognize it by name.

Call syntax

pd.api.extensions.register_extension_dtype(cls)

Run the example

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

Parameters

ParameterRequirementAccepted values and behavior
cls Required
Positional or keyword
type_t[ExtensionDtypeT]

Provide an ExtensionDtype subclass with a class-level name. This function can be used as a class decorator.

Returns

callable