Skip to content

BUG: RollingGroupby not respecting sort=False #36911

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 9, 2020

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke added Bug Window rolling, ewma, expanding labels Oct 6, 2020
@mroeschke mroeschke added this to the 1.1.4 milestone Oct 6, 2020
# GH 36889
indices_dict = {}
codes, uniques = algorithms.factorize(self.grouper, sort=self.sort)
for i, category in enumerate(Index(uniques)):
Copy link
Contributor

Choose a reason for hiding this comment

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

can you do a dict-comprehension
remove the issue comment, but instead add a comment on what we are doing here

@jreback
Copy link
Contributor

jreback commented Oct 8, 2020

lgtm merge on green.

@mroeschke mroeschke merged commit 345efdd into pandas-dev:master Oct 9, 2020
@mroeschke mroeschke deleted the bug/rolling_groupby_sort branch October 9, 2020 00:46
@simonjayhawkins
Copy link
Member

@meeseeksdev backport 1.1.x

simonjayhawkins pushed a commit to simonjayhawkins/pandas that referenced this pull request Oct 9, 2020
simonjayhawkins added a commit that referenced this pull request Oct 9, 2020
@pandas-dev pandas-dev deleted a comment from lumberbot-app bot Oct 10, 2020
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
* BUG: RollingGroupby not respecting sort

* move to 1.1.4

* Just use factorize

* Add comments and turn into dict comprenehsion

Co-authored-by: Matt Roeschke <[email protected]>
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: RollingGroupby no longer respects sort being disabled
3 participants