Skip to content

PERF: Too long MultiIndex repr freezes notebook #5629

Closed
@michaelaye

Description

@michaelaye

I have a quite large MultiIndex here that I accidentally tried to show with __repr__:

print len(counts.index)
print type(counts.index)

3982319
<class 'pandas.core.index.MultiIndex'>

whereupon my Macbook started to boil and the notebooks became unresponsive and I had to hard-kill the notebook server to get things back on track.
Is that avoidable somehow in a similar fashion you are checking the length of a dataframe before showing it?

Pandas version is 0.13.0rc1, with Canopy's python 2.7.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions