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
@@ -526,6 +526,15 @@ Previous Behavior:
526
526
ExtensionType Changes
527
527
^^^^^^^^^^^^^^^^^^^^^
528
528
529
+
**:class:`pandas.api.extensions.ExtensionDtype` Equality and Hashability**
530
+
531
+
Pandas now requires that extension dtypes be hashable. The base class implements
532
+
a default ``__eq__`` and ``__hash__``. If you have a parametrized dtype, you should
533
+
update the ``ExtensionDtype._metadata`` tuple to match the signature of your
534
+
``__init__`` method. See :class:`pandas.api.extensions.ExtensionDtype` for more (:issue:`22476`).
535
+
536
+
**Other changes**
537
+
529
538
- ``ExtensionArray`` has gained the abstract methods ``.dropna()`` (:issue:`21185`)
530
539
- ``ExtensionDtype`` has gained the ability to instantiate from string dtypes, e.g. ``decimal`` would instantiate a registered ``DecimalDtype``; furthermore
531
540
the ``ExtensionDtype`` has gained the method ``construct_array_type`` (:issue:`21185`)
0 commit comments