Skip to content

BUG: Groupby-Apply with modifying dataframe and sorting overwrites group values #43620

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

Merged
merged 1 commit into from
Oct 16, 2021

Conversation

kasmith11
Copy link
Contributor

@kasmith11 kasmith11 commented Sep 17, 2021

xref #36602

DOC
@jreback jreback changed the title GH36602 BUG: Groupby-Apply with modifying dataframe and sorting overwrites group values Sep 17, 2021
@jreback jreback added Apply Apply, Aggregate, Transform, Map Docs Groupby labels Sep 17, 2021
@@ -171,6 +171,10 @@ class providing the base-class of operations.
The resulting dtype will reflect the return value of the passed ``func``,
see the examples below.

Functions that mutate the passed object can produce unexpected
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be in Notes (wouldn't object to having this as a warning)

Copy link
Contributor Author

@kasmith11 kasmith11 Sep 18, 2021

Choose a reason for hiding this comment

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

My apologies, I'm new to contributing. Did I put my additional note in the incorrect 'Notes' section? @jreback

Copy link
Member

Choose a reason for hiding this comment

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

Looks correct to me.

@rhshadrach rhshadrach added this to the 1.4 milestone Sep 19, 2021
Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

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

lgtm

@mroeschke mroeschke merged commit 55f0654 into pandas-dev:master Oct 16, 2021
@mroeschke
Copy link
Member

Great! Thanks @kasmith11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apply Apply, Aggregate, Transform, Map Docs Groupby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Groupby-Apply with modifying dataframe and sorting overwrites group values
4 participants