Skip to content

[BUG]: Rolling selected too large windows with PeriodIndex #36730

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
Oct 3, 2020

Conversation

phofl
Copy link
Member

@phofl phofl commented Sep 29, 2020

asi8 of PeriodIndex is not in nanoseconds, so we can not set self.window=freq.nanos

@phofl phofl added the Window rolling, ewma, expanding label Sep 29, 2020
@phofl
Copy link
Member Author

phofl commented Sep 30, 2020

Test failure seems unrelated?

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.

Looks pretty good

@WillAyd
Copy link
Member

WillAyd commented Sep 30, 2020

@jbrockmendel

@phofl
Copy link
Member Author

phofl commented Oct 1, 2020

Should we check, if the divison result is convertible to an integer?

@jreback
Copy link
Contributor

jreback commented Oct 2, 2020

can you rebase

� Conflicts:
�	doc/source/whatsnew/v1.2.0.rst
�	pandas/tests/window/test_rolling.py
@phofl
Copy link
Member Author

phofl commented Oct 2, 2020

@jreback done

@jreback jreback added this to the 1.2 milestone Oct 3, 2020
@jreback jreback added the Bug label Oct 3, 2020
@jreback jreback merged commit d5cddbd into pandas-dev:master Oct 3, 2020
@jreback
Copy link
Contributor

jreback commented Oct 3, 2020

thanks @phofl

kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
@phofl phofl deleted the 34225 branch April 27, 2023 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Use of PeriodIndex with rolling transform aggregating function into cumulative aggregating?
3 participants