-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Reording a multiindex by only specifiying the order on level 0 #4088
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
Labels
Milestone
Comments
Are you missing a line where you convert tuples to MultiIndex there? |
also this
seems wrong. |
@JanSchulz turns out this was not implemented kind of trivial once I figured out what the problem was. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
starting PR is here: #6647
By reading the docs on
Dataframe.reindex()
, I would have guessed (not sure what "broadcast" is...) that this works:It works that way on a normal index (without the level argument):
It also works when I pass a list of tuples:
The text was updated successfully, but these errors were encountered: