Skip to content
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

Merged
merged 3 commits into from Jul 4, 2023
Merged

Conversation

phofl
Copy link
Collaborator

@phofl phofl commented May 24, 2023

The previous warning seemed very inconsistent

Copy link
Member

@jrbourbeau jrbourbeau left a 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?

if inplace is not no_default:
warnings.warn(
"'inplace' argument for dask series will be removed in future versions",
PendingDeprecationWarning,
Copy link
Member

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@phofl
Copy link
Collaborator Author

phofl commented Jun 12, 2023

Yep good point, removed

Copy link
Member

@hendrikmakait hendrikmakait left a 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.

@hendrikmakait hendrikmakait merged commit a6d9248 into dask:main Jul 4, 2023
24 checks passed
@phofl phofl deleted the rename branch July 4, 2023 12:04
j-bennet pushed a commit to j-bennet/dask that referenced this pull request Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants