Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
closes
BUG: Rolling variance is negative #52407
BUG: roll_std compute different result when input same data with diffrent length #55343
BUG: Incorrect rolling std #54518
BUG: Rolling std() error #47721
Potentially closes
test_rolling_var_numerical_issues on linux py_3.8_32 failing on MacPython.pandas-wheels #37398
COMPAT/BLD: rolling failed on Arm64 and ppc64le Linux #38921,
TST: Tests broken in ARM #41740
All tests for rolling variance that were previously failing now pass.
Added tests from 52407, 47721, 54518