8000 Deprecate inplace in Categorical.remove_unused_categories by OlehKSS · Pull Request #37918 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix line length.
  • Loading branch information
Oleh Kozynets committed Nov 18, 2020
commit d1ecca0cb6682c63ea92c1206dcb9d771bdee89a
5 changes: 3 additions & 2 deletions pandas/core/arrays/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,8 +1074,9 @@ def remove_unused_categories(self, inplace=no_default):
"""
if inplace is not no_default:
warn(
"The `inplace` parameter in pandas.Categorical.remove_unused_categories "
"is deprecated and will be removed in a future version.",
"The `inplace` parameter in pandas.Categorical."
"remove_unused_categories is deprecated and "
"will be removed in a future version.",
FutureWarning,
stacklevel=2,
)
Expand Down
0