Skip to content

PERF: Too long MultiIndex repr freezes notebook #5629

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

Closed
michaelaye opened this issue Dec 2, 2013 · 1 comment
Closed

PERF: Too long MultiIndex repr freezes notebook #5629

michaelaye opened this issue Dec 2, 2013 · 1 comment

Comments

@michaelaye
Copy link
Contributor

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

@jreback
Copy link
Contributor

jreback commented Dec 2, 2013

this is a dupe of #5120

IIRC you can set max_seq_len to say 1000

@jreback jreback closed this as completed Dec 2, 2013
@ghost ghost mentioned this issue Dec 2, 2013
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants