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