-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Styler background_gradient cmap with tuple indices sometimes resulting in ValueError #24687
Comments
Using a tuple as a label is generally not supported, but if you want to take a look PRs are always welcome |
For conda pandas 0.23.4, I added
On the failure, notice the last line:
Note the nested list. The original index prints as I'm taking a look at from pandas._libs import lib
lib.clean_index_list([(('Turtle', 'Chicken'), (('Man', 'Monkey'), 'Dog'))]) |
Full demo of the issue (Breakage occurs prior to highlighting cells, as shown in the pictures)
When running the 'broken_cluster', the output is:
Problem description
The pandas styler will sometimes fail with a ValueError when the column and index labels are tuples. This issue is reproducible with the data provided above.
This problem is fully demonstrated in my UPGMA repository, here.
Software Versions:
Expected Output
The text was updated successfully, but these errors were encountered: