Skip to content
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

BUG: Ensure rolling groupby doesn't segfault with center=True #35562

Merged
merged 4 commits into from
Aug 7, 2020

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke added Bug Window rolling, ewma, expanding labels Aug 5, 2020
@mroeschke mroeschke added this to the 1.1.1 milestone Aug 5, 2020
@@ -16,7 +16,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~

- Fixed regression where :func:`read_csv` would raise a ``ValueError`` when ``pandas.options.mode.use_inf_as_na`` was set to ``True`` (:issue:`35493`).
-
- Fixed regression in :class:`pandas.core.groupby.RollingGroupby` where a segfault would occur with ``center=True`` and an odd number of values (:issue:`35552`)
Copy link
Member

@jorisvandenbossche jorisvandenbossche Aug 5, 2020

Choose a reason for hiding this comment

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

pandas.core.groupby.RollingGroupby doesn't exist, so this link won't work (it's in the window module). But, we actually don't have this in the API docs it seems, so won't work anyway. I would just do something like .groupby(..).rolling(..) to indicate which operation is affected.

@jreback jreback added the Regression Functionality that used to work in a prior pandas version label Aug 6, 2020
@jreback
Copy link
Contributor

jreback commented Aug 6, 2020

can you merge master, looks good

@jreback jreback merged commit 1922ec4 into pandas-dev:master Aug 7, 2020
@jreback
Copy link
Contributor

jreback commented Aug 7, 2020

thanks @mroeschke

@jorisvandenbossche
Copy link
Member

@meeseeksdev backport to 1.1.x

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Aug 7, 2020
jreback pushed a commit that referenced this pull request Aug 7, 2020
… center=True (#35610)

Co-authored-by: Matthew Roeschke <emailformattr@gmail.com>
@mroeschke mroeschke deleted the bug/rolling_groupby_center branch August 7, 2020 19:29
@simonjayhawkins simonjayhawkins mentioned this pull request Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Regression Functionality that used to work in a prior pandas version Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Segmentation fault in RollingGroupby.mean() with center=True and input with odd length
3 participants