Skip to content

Commit 746852e

Browse files
author
Oleh Kozynets
committed
Add whatsnew entry.
1 parent 1499e88 commit 746852e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/source/whatsnew/v1.2.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ Deprecations
458458
- :meth:`Categorical.is_dtype_equal` and :meth:`CategoricalIndex.is_dtype_equal` are deprecated, will be removed in a future version (:issue:`37545`)
459459
- :meth:`Series.slice_shift` and :meth:`DataFrame.slice_shift` are deprecated, use :meth:`Series.shift` or :meth:`DataFrame.shift` instead (:issue:`37601`)
460460
- Partial slicing on unordered :class:`DatetimeIndexes` with keys, which are not in Index is deprecated and will be removed in a future version (:issue:`18531`)
461+
- The ``inplace`` parameter of :meth:`Categorical.remove_unused_categories` is deprecated and will be removed in a future version (:issue:`37643`)
461462

462463
.. ---------------------------------------------------------------------------
463464

pandas/core/arrays/categorical.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,8 @@ def remove_unused_categories(self, inplace=no_default):
10761076
warn(
10771077
"The `inplace` parameter in pandas.Categorical.remove_unused_categories"
10781078
" is deprecated and will be removed in a future version.",
1079-
FutureWarning, stacklevel=2
1079+
FutureWarning,
1080+
stacklevel=2,
10801081
)
10811082

10821083
cat = self.copy()

0 commit comments

Comments
 (0)