-
Notifications
You must be signed in to change notification settings - Fork 915
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
[FEA] Groupby pct_change #9606
Comments
This issue has been labeled |
I believe this could be expressed fairly smoothly from Python with two separate groupby aggregations with a loose structure of:
Using internal APIs, is it possible to calculate the |
This issue has been labeled |
This issue has been labeled |
Subsequent to #9805, this PR adds support for Groupby.pct_change() Fixes #9606 Replaces #10444 Authors: - Sheilah Kirui (https://github.com/skirui-source) Approvers: - Ashwin Srinath (https://github.com/shwina) URL: #11144
For time series analysis and pandas API compatibility, it would be useful to implement Groupby.pct_change. It may be feasible to implement
Groupby.pct_change
reasonably efficiently in the Python layer by using existing groupby functionality (diff and shift). As a starting point, it would make sense to limit the supported parameters/configuration to those currently supported bySeries.pct_change
.Per the pandas documentation, "Calculate pct_change of each value to previous entry in group."
The text was updated successfully, but these errors were encountered: