Skip to content

BUG: DataFrame.to_html(index=False) with named Index rendered incorrectly #10344

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
sinhrks opened this issue Jun 13, 2015 · 0 comments
Closed
Labels
Bug IO HTML read_html, to_html, Styler.apply, Styler.applymap Output-Formatting __repr__ of pandas objects, to_string
Milestone

Comments

@sinhrks
Copy link
Member

sinhrks commented Jun 13, 2015

As below capture, index name is drawn even if index=False is specified, and it corrupts the layout.

2015-06-13 11 47 56

For copy/paste to Jupyter:

import numpy as np
import pandas as pd
from IPython.display import HTML

df = pd.DataFrame(np.random.randn(2, 2), index=pd.Index(['A', 'B'], name='idx'))
HTML(df.to_html())

HTML(df.to_html(index=False))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO HTML read_html, to_html, Styler.apply, Styler.applymap Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

No branches or pull requests

2 participants