Skip to content

Conversation

@suzyahyah
Copy link
Contributor

@suzyahyah suzyahyah commented Sep 30, 2025

Rolling variance previously had an indexing bug in the end of the window, in pandas/_libs/window/aggregations.pyx

The implementation now matches numpy rolling variance results, passes "rolling variance correctness" test cases, and all other "rolling_var/std" tests (18/18). It also addresses all of these reported (open) rolling std/var issues

@mroeschke mroeschke added the Window rolling, ewma, expanding label Sep 30, 2025
@suzyahyah suzyahyah requested a review from WillAyd October 1, 2025 01:48
@suzyahyah suzyahyah force-pushed the fix_rolling_var branch 2 times, most recently from 813d0b9 to 288c5d7 Compare October 1, 2025 04:35
Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

This looks pretty good - thanks @suzyahyah . Can you also add a whatsnew note describing the fix to the 3.0.0 changelog?

@mroeschke any comments from your end?

@mroeschke mroeschke requested a review from WillAyd October 4, 2025 16:15
@WillAyd WillAyd merged commit 7b8761c into pandas-dev:main Oct 4, 2025
42 checks passed
@WillAyd
Copy link
Member

WillAyd commented Oct 4, 2025

Great thanks @suzyahyah - nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Window rolling, ewma, expanding

3 participants