You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def register(cls):
"""Class decorator to register an ExtensionType with pandas.
This enables operations like ``.astype(name)`` for the name
of the ExtensionDtype.
Examples
--------
>>> from pandas.api.extensions import register, ExtensionDtype
>>> @register
... class MyExtensionDtype(ExtensionDtype):
... pass
"""
registry.register(cls)
return cls
That gives us a bit more freedom in changing how registry is implemented.
In
pandas.api.extensions
probably.The text was updated successfully, but these errors were encountered: