We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now when I want to have expanding operate at the level of a group I have to apply a convenience function like so:
def expanding_sum(s): return s.expanding().sum() expanded_sum = df.groupby('mygroup')['mynum'].apply(expanding_sum)
Would be nice to be able to call a method directly on a groupby object:
expanded_sum = df.groupby('mygroup')['mynum'].expanding().sum()
The text was updated successfully, but these errors were encountered:
related to #12486
yes this should be possible - have to manage the dispatching correctly
Sorry, something went wrong.
.expanding()
ENH: allow .rolling / .expanding as groupby methods
f98e6f8
closes pandas-dev#12738 BUG: allow df.groupby(...).resample(...) to return a Resampler groupby object closes pandas-dev#12486 BUG: consistency of name of returned groupby closes pandas-dev#12363
6994240
Successfully merging a pull request may close this issue.
Right now when I want to have expanding operate at the level of a group I have to apply a convenience function like so:
Would be nice to be able to call a method directly on a groupby object:
The text was updated successfully, but these errors were encountered: