-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
printing multi-index dataframe with renamed index produces traceback #13000
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
This works on master for me, I believe was closed on: #12702 are you setting anything in particular, e.g. |
No, using whatever is default |
all that said, @DGalt would you care to do a PR for validation tests of the 3 examples above? |
Issues 13000! whoo hoo! |
Ha, what a nice round number. And sure, I can put together a PR for those tests, although looking through it's not clear to me where they should go. |
put them in |
When generating a multi-indexed dataframe, if the default index is renamed and the dataframe is longer than the
max_rows
display option. This cropped up after updating from 0.17 to 0.18.Code Sample, a copy-pastable example if possible
Expected Output
The expected outcome is that the dataframe should print out without producing a traceback, as occurs when the length is less than that set by
max_rows
. I.e.The issue only seems to be with changing the default index name, as you can change the other index name without issue:
output of
pd.show_versions()
Discussed in more detail here
The text was updated successfully, but these errors were encountered: