pyarrow.register_extension_type

pyarrow.register_extension_type(ext_type)

Register a Python extension type.

Registration is based on the extension name (so different registered types need unique extension names). Registration needs an extension type instance, but then works for any instance of the same subclass regardless of parametrization of the type.

Parameters

ext_type (BaseExtensionType instance) – The ExtensionType subclass to register.