Skip to content

ENH: provide keyword to groupby to reindex by all possible indicies for a multi-index #3835

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
jreback opened this issue Jun 10, 2013 · 5 comments
Labels
API Design Groupby Ideas Long-Term Enhancement Discussions Indexing Related to indexing on series/frames, not to indexes themselves
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Jun 10, 2013

http://stackoverflow.com/questions/17027470/pandas-groupby-and-multiindex

not sure how useful this is....but say we provide dropna=True (which is the current behavior), but if dropna=False then can reindex by all the combinations of each index level as a reindexer...

@hayd
Copy link
Contributor

hayd commented Jun 10, 2013

This would make for a much better solution for #3820.

@jreback
Copy link
Contributor Author

jreback commented Jun 10, 2013

I think its the same op with 2 diff questions....but yes

@hayd
Copy link
Contributor

hayd commented Jun 10, 2013

@hayd
Copy link
Contributor

hayd commented Jun 23, 2013

vaguely related #3999

@jreback
Copy link
Contributor Author

jreback commented Jan 26, 2015

user can just use multiindex.from_product and reindex

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
API Design Groupby Ideas Long-Term Enhancement Discussions Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

No branches or pull requests

2 participants