Skip to content

Conversation

@vkverma9534
Copy link
Contributor

@vkverma9534 vkverma9534 commented Jan 26, 2026

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

…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
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.

Thanks for the PR! Looks like the docs build is failing.

@vkverma9534
Copy link
Contributor Author

@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.

@rhshadrach
Copy link
Member

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.

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.

Looking great!

vkverma9534 and others added 3 commits January 28, 2026 13:00
Co-authored-by: Richard Shadrach <45562402+rhshadrach@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENH: Decay-weighted rolling aggregations with defined behavior for duplicate timestamps

2 participants