Skip to content

BUG: Prevent segfault in roll_weighted_var #46772

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

Merged
merged 9 commits into from
Apr 18, 2022
Merged

BUG: Prevent segfault in roll_weighted_var #46772

merged 9 commits into from
Apr 18, 2022

Conversation

joseortiz3
Copy link
Contributor

@joseortiz3 joseortiz3 commented Apr 13, 2022

@joseortiz3
Copy link
Contributor Author

Ok, thanks.

I'm unsure how to verify that my test I added to test_win_type.py is working. I'm unfamiliar with implementing tests in projects like pandas, forgive me while I'm learning :) and thanks again for your help.

@mroeschke mroeschke added the Window rolling, ewma, expanding label Apr 14, 2022
@mroeschke mroeschke added this to the 1.5 milestone Apr 14, 2022
Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

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

One comment, otherwise looks good!

@joseortiz3 joseortiz3 changed the title Prevent segfault in roll_weighted_var BUG: Prevent segfault in roll_weighted_var Apr 14, 2022
@mroeschke mroeschke merged commit 5b76b77 into pandas-dev:main Apr 18, 2022
@mroeschke
Copy link
Member

Awesome, thanks @joseortiz3 (the failure was unrelated)

yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
* Change range to prevent segfault

See pandas-dev#46760

* Update v1.5.0.rst with doc of fix for issue 46760

* typo

* Improve language for fix of weighted variance segfault

* Added test for issue pandas-dev#46772

* style - change single quotes to double

* Add fixtures `win_types` and `center` to test signature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Series rolling .var with window>14, center=True, and any win_type crashes python with no error message
2 participants