Skip to content

Commit eea0123

Browse files
committed
Updare warning message.
1 parent 1e16941 commit eea0123

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/arrays/categorical.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1167,8 +1167,9 @@ def remove_categories(self, removals, inplace=no_default):
11671167
if inplace is not no_default:
11681168
warn(
11691169
"The `inplace` parameter in pandas.Categorical."
1170-
"remove_categories is deprecated and "
1171-
"will be removed in a future version.",
1170+
"remove_categories is deprecated and will be removed in "
1171+
"a future version. Removing unused categories will always "
1172+
"return a new Categorical object.",
11721173
FutureWarning,
11731174
stacklevel=2,
11741175
)

0 commit comments

Comments
 (0)