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/v2.0.0.rst
+3
Original file line number
Diff line number
Diff line change
@@ -902,6 +902,7 @@ Performance improvements
902
902
- Performance improvement in :func:`merge` and :meth:`DataFrame.join` when joining on a sorted :class:`MultiIndex` (:issue:`48504`)
903
903
- Performance improvement in :func:`to_datetime` when parsing strings with timezone offsets (:issue:`50107`)
904
904
- Performance improvement in :meth:`DataFrame.loc` and :meth:`Series.loc` for tuple-based indexing of a :class:`MultiIndex` (:issue:`48384`)
905
+
- Performance improvement for :meth:`Series.replace` with categorical dtype (:issue:`49404`)
905
906
- Performance improvement for :meth:`MultiIndex.unique` (:issue:`48335`)
906
907
- Performance improvement for :func:`concat` with extension array backed indexes (:issue:`49128`, :issue:`49178`)
907
908
- Reduce memory usage of :meth:`DataFrame.to_pickle`/:meth:`Series.to_pickle` when using BZ2 or LZMA (:issue:`49068`)
@@ -946,6 +947,8 @@ Bug fixes
946
947
Categorical
947
948
^^^^^^^^^^^
948
949
- Bug in :meth:`Categorical.set_categories` losing dtype information (:issue:`48812`)
950
+
- Bug in :meth:`Series.replace` with categorical dtype when ``to_replace`` values overlap with new values (:issue:`49404`)
951
+
- Bug in :meth:`Series.replace` with categorical dtype losing nullable dtypes of underlying categories (:issue:`49404`)
949
952
- Bug in :meth:`DataFrame.groupby` and :meth:`Series.groupby` would reorder categories when used as a grouper (:issue:`48749`)
950
953
- Bug in :class:`Categorical` constructor when constructing from a :class:`Categorical` object and ``dtype="category"`` losing ordered-ness (:issue:`49309`)
0 commit comments