-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: DataFrame.pivot fails on multiple columns to set as index #21425
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
Comments
Shouldn't pd.pivot_table be used if multiple columns for the index is desired, or if a pivoted index-column pair has more than 1 value and thus requires aggregation? |
I'd like to complete this (I had this issue the other day, and just switched to Looks like just a few changes needed in thoo's branch. |
Will I be duplicating someone else's efforts if I begin work on this issue? |
Since it is already some weeks that @srcole commented about this (btw, sorry for not answering to your comment back then!), I think you are welcome to do a PR. |
I am not sure anymore if
DataFrame.pivot
actually supports multiple columns to set asindex
/columns
(it should), but in any case this error is very confusing:The text was updated successfully, but these errors were encountered: