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
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.24.0.txt
+9
Original file line number
Diff line number
Diff line change
@@ -492,6 +492,15 @@ Previous Behavior:
492
492
ExtensionType Changes
493
493
^^^^^^^^^^^^^^^^^^^^^
494
494
495
+
**:class:`pandas.api.extensions.ExtensionDtype` Equality and Hashability**
496
+
497
+
Pandas now requires that extension dtypes be hashable. The base class implements
498
+
a default ``__eq__`` and ``__hash__``. If you have a parametrized dtype, you should
499
+
update the ``ExtensionDtype._metadata`` tuple to match the signature of your
500
+
``__init__`` method. See :class:`pandas.api.extensions.ExtensionDtype` for more.
501
+
502
+
**Other changes**
503
+
495
504
- ``ExtensionArray`` has gained the abstract methods ``.dropna()`` (:issue:`21185`)
496
505
- ``ExtensionDtype`` has gained the ability to instantiate from string dtypes, e.g. ``decimal`` would instantiate a registered ``DecimalDtype``; furthermore
497
506
the ``ExtensionDtype`` has gained the method ``construct_array_type`` (:issue:`21185`)
0 commit comments