-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: styler index and empty df #43327
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
Conversation
attack68
commented
Aug 31, 2021
•
edited
Loading
edited
- closes BUG: Styler IndexError when rendering an empty DataFrame #43305
- tests added / passed
- whatsnew entry
def test_render_empty_mi(): | ||
# GH 43305 | ||
df = DataFrame(index=MultiIndex.from_product([["A"], [0, 1]], names=[None, "one"])) | ||
df.style.to_html() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth asserting this is as expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not convinced. but I added it anyway. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - will save any regressions over time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Minor Comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm over to you @alimcmaster1