-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REVIEW] Deprecate inplace
parameters in categorical methods
#12824
Conversation
@@ -141,6 +141,13 @@ def as_ordered(self, inplace: bool = False) -> Optional[SeriesOrIndex]: | |||
or return a copy of this categorical with | |||
added categories. | |||
|
|||
.. deprecated:: 23.02 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see 23.02
here but 23.04
below, is this as intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, this is intentional. inplace
here was deprecated in 23.02
. This is just updating the docstring.
AFAICT this is just adding deprecation warnings, should this be |
/merge |
Description
To get ready for pandas-2.0 compatibility, this PR deprecates
inplace
in the following APIs:as_ordered
as_unordered
add_categories
remove_categories
set_categories
reorder_categories
Checklist