-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Abbreviate MultiIndex representation #12423
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
@tdoughty1 Thanks for the report The single index follows the |
yes this was noted in #9901 its a pretty straightforward fix to truncate these. |
I think I found a similar issue with a pandas.core.internal.BlockManager object that was printed out in our debugging scripts. |
the |
The indexes have a nice well-defined way of doing repr. |
Ok, thanks. I'm trying to figure out why the Block manager is printing out in the first place right now. |
this actually I think is a trivial change in |
After a little checking I found out the entire Block manager is printed out in full when running the logging library in DEBUG mode. This may be the desired functionality. |
we don't have a DEBUG mode. yeh if you actually look at the |
We are using pandas to do analysis on a moderately large size dataset (10s of millions of events). In the process, we create a MultiIndex object in order to store the data. While I was debugging, I repeatedly ran into an issue where the MultiIndex object tried to print out the entire very long array. I've included code for a short test I did just to confirm the behavior.
Ideally, I think it would be good for the string representation of the MultiIndex object to have similar abbreviation strategy to the Series and DataFrame objects it indexes.
Code Sample, a copy-pastable example if possible
Expected Output
output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: