Skip to content

BUG: Incorrect variable window bounds for first row when offset cover all rows #42776

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 14 commits into from
Aug 7, 2021

Conversation

dicristina
Copy link
Contributor

@dicristina dicristina commented Jul 28, 2021


Allow for cases in which the end bound of the variable window for the first row extends past the last row, that is, cases in which the offset is large enough to cover all the rows.

@pep8speaks
Copy link

pep8speaks commented Jul 28, 2021

Hello @dicristina! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-08-06 16:42:02 UTC

@simonjayhawkins simonjayhawkins added the Window rolling, ewma, expanding label Aug 3, 2021
@simonjayhawkins simonjayhawkins added this to the 1.3.2 milestone Aug 3, 2021
@jreback
Copy link
Contributor

jreback commented Aug 5, 2021

cc @mroeschke

@dicristina dicristina requested a review from jreback August 5, 2021 01:18
@jreback
Copy link
Contributor

jreback commented Aug 5, 2021

@dicristina can you merge master

@dicristina dicristina requested a review from mroeschke August 6, 2021 12:42
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 LGTM

@jreback jreback merged commit 544ebd2 into pandas-dev:master Aug 7, 2021
@jreback
Copy link
Contributor

jreback commented Aug 7, 2021

thanks @dicristina

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Aug 7, 2021
@jreback
Copy link
Contributor

jreback commented Aug 7, 2021

@meeseeksdev backport 1.3.x

@lumberbot-app
Copy link

lumberbot-app bot commented Aug 7, 2021

Something went wrong ... Please have a look at my logs.

@dicristina dicristina deleted the rolling_GH42753 branch August 7, 2021 23:31
jreback pushed a commit that referenced this pull request Aug 8, 2021
…ow when offset cover all rows (#42929)

Co-authored-by: dicristina <[email protected]>
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
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: Inconsistent result from centered datetime-like rolling window aggregates
5 participants