-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: MultiIndex
displays incorrectly with a long element
#53044
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
format_object_summary
not setting head
and tail
correctly
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.
Could you also add a unit test
Sure, thanks for your review! I'll make the changes ASAP. |
format_object_summary
not setting head
and tail
correctlyMultiIndex
displays incorrectly with a long element
@mroeschke Hi, I've made the unit test. However, I'm not sure if this is the correct way to do, so would you mind giving some instructions if I'm not doing correctly? Thank you very much. |
Thanks @Charlie-XIAO |
…v#53044) * if branch may not be visited, so head and tail may not be correctly set * fixed pylint possibly undefined variable * updated changelog * added unit test
…v#53044) * if branch may not be visited, so head and tail may not be correctly set * fixed pylint possibly undefined variable * updated changelog * added unit test
…v#53044) * if branch may not be visited, so head and tail may not be correctly set * fixed pylint possibly undefined variable * updated changelog * added unit test
doc/source/whatsnew/v2.1.0.rst
filepandas/pandas/io/formats/printing.py
Lines 417 to 420 in 721bd7a
The
if
branch as shown above may never be visited, sohead
andtail
may not be correctly set. This pull request fixes this problem.