File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,8 @@ class ExtensionDtype(_DtypeOpsMixin):
127
127
* _is_numeric
128
128
129
129
Optionally one can override construct_array_type for construction
130
- with the name of this dtype via the Registry
130
+ with the name of this dtype via the Registry. See
131
+ :meth:`pandas.api.extensions.register_extension_dtype`.
131
132
132
133
* construct_array_type
133
134
@@ -138,6 +139,11 @@ class ExtensionDtype(_DtypeOpsMixin):
138
139
Methods and properties required by the interface raise
139
140
``pandas.errors.AbstractMethodError`` and no ``register`` method is
140
141
provided for registering virtual subclasses.
142
+
143
+ See Also
144
+ --------
145
+ pandas.api.extensions.register_extension_dtype
146
+ pandas.api.extensions.ExtensionArray
141
147
"""
142
148
143
149
def __str__ (self ):
Original file line number Diff line number Diff line change 11
11
def register_extension_dtype (cls ):
12
12
"""Class decorator to register an ExtensionType with pandas.
13
13
14
+ .. versionadded:: 0.24.0
15
+
14
16
This enables operations like ``.astype(name)`` for the name
15
17
of the ExtensionDtype.
16
18
You can’t perform that action at this time.
0 commit comments