Skip to content

No SettingWithCopyWarning on groupby results #19152

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

Closed
wants to merge 1 commit into from

Conversation

has2k1
Copy link
Contributor

@has2k1 has2k1 commented Jan 9, 2018

The dataframe referred to in the warning is a result of an
internal slicing operation and should not lead to a warning
in userspace.

The dataframe referred to in the warning is a result of an
internal slicing operation and should not lead to a warning
in userspace.

fixes pandas-dev#19151
@jreback jreback added the Groupby label Jan 9, 2018
@jreback jreback added this to the No action milestone Jan 9, 2018
@jreback
Copy link
Contributor

jreback commented Jan 9, 2018

see my comments on the issue. This is as expected. mutation is non-idiomatic, and this is a correct warning. If you really really want to mutate, you must copy first.

@jreback jreback closed this Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SettingWithCopyWarning while iterating on groupby results
2 participants