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
Warn consistently for inplace
in Series.rename
#10313
Conversation
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.
Thanks @phofl
Can we safely remove the
warnings.warn(
"'inplace' argument for dask series will be removed in future versions",
PendingDeprecationWarning,
)
a few lines below now?
dask/dataframe/core.py
Outdated
if inplace is not no_default: | ||
warnings.warn( | ||
"'inplace' argument for dask series will be removed in future versions", | ||
PendingDeprecationWarning, |
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'm not sure why PendingDeprecationWarning
was used originally. Probably worth upgrading to FutureWarning
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.
updated
Yep good point, removed |
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.
Thanks, @phofl! This looks good to me, and all of @jrbourbeau's concerns seem to have been addressed.
The previous warning seemed very inconsistent