Skip to content
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

to_html fails for MultiIndexes with empty strings and display.multi_sparse == False #3553

Closed
cpcloud opened this issue May 9, 2013 · 0 comments · Fixed by #3557
Closed
Labels
Bug Output-Formatting __repr__ of pandas objects, to_string
Milestone

Comments

@cpcloud
Copy link
Member

cpcloud commented May 9, 2013

Piggybacking off of #3547.

import pandas as pd
from nose.tools import assert_raises
pd.set_option('display.multi_sparse', False)
df = pd.DataFrame({'c1': ['a', 'b'], 'c2': ['a', ''], 'data': [1, 2]}).set_index(['c1', 'c2'])
assert_raises(TypeError, df.to_html)  # True
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant