-
-
Notifications
You must be signed in to change notification settings - Fork 19.6k
Doc: Added cookbook regarding use of Decay-Weighted Rolling Aggregati… #63884
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
base: main
Are you sure you want to change the base?
Conversation
…ons for Irregular Time This pull request adds a cookbook example showing how to compute time-distance (decay-weighted) rolling aggregations using existing pandas functionality. The example demonstrates how to apply exponential time decay within a time-based rolling window, how to handle irregularly spaced data, and how to deal with duplicate timestamps by aggregating them beforehand. This approach follows the discussion in the linked issue, where documenting this pattern as a cookbook-style idiom was agreed to be the most appropriate next step rather than introducing new API surface. Closes pandas-dev#63551
rhshadrach
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Looks like the docs build is failing.
|
@rhshadrach Thanks for your suggestions, I tried adjusting with the recommended changes , just wanted to get clarity on blog do you want that part to be completely removed or it is that Google Docs is not allowed. |
It isn't Google Docs specifically, but any storage location that is controlled by one person. We should restrict linking to "official" locations - docs of popular projects, StackOverflow, Wikipedia, etc. |
rhshadrach
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great!
Co-authored-by: Richard Shadrach <45562402+rhshadrach@users.noreply.github.com>
This pull request adds a cookbook example showing how to compute time-distance (decay-weighted) rolling aggregations using existing pandas functionality. The example demonstrates how to apply exponential time decay within a time-based rolling window, how to handle irregularly spaced data, and how to deal with duplicate timestamps by aggregating them beforehand.
This approach follows the discussion in the linked issue, where documenting this pattern as a cookbook-style idiom was agreed to be the most appropriate next step rather than introducing new API surface.
Closes #63551