Skip to content

Fix bug in multiindex series groupby where sort argument is ignored #9461

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 1 commit into from
Feb 11, 2015

Conversation

cottrell
Copy link
Contributor

PR as per.

One test added. Test fails without the fix.

closes #9444

@jorisvandenbossche jorisvandenbossche mentioned this pull request Feb 10, 2015
@jreback
Copy link
Contributor

jreback commented Feb 10, 2015

looks good
ping when green

names=['a', 'b'])
self.mseries = Series([0, 1, 2, 3, 4, 5], index=index)
index = MultiIndex(levels=[[1, 2], [1, 2]],
labels=[[0, 0, 1], [1, 0, 0]],
Copy link
Contributor

Choose a reason for hiding this comment

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

actually
move these into the actual test function
they only need to be created once
if they are in the setup they will be for every test - which is not necessary

@jreback
Copy link
Contributor

jreback commented Feb 10, 2015

@cottrell looks good now. thanks. ping when green.

@jreback
Copy link
Contributor

jreback commented Feb 10, 2015

does this also fix #8868 ?

@cottrell
Copy link
Contributor Author

@jreback It does not seem to in my test of #8868. Probably a similar issue but elsewhere. I can probably have a look later this week.

@jreback
Copy link
Contributor

jreback commented Feb 11, 2015

ok gr8 thanks

jreback added a commit that referenced this pull request Feb 11, 2015
Fix bug in multiindex series groupby where sort argument is ignored
@jreback jreback merged commit 098a09a into pandas-dev:master Feb 11, 2015
@jreback
Copy link
Contributor

jreback commented Feb 11, 2015

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sort=False ignored in Series groupby on MultiIndex levels
2 participants