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 for a row-wise empty dataframe should print the header #6062

Closed
filmor opened this issue Jan 24, 2014 · 2 comments
Closed

to_html for a row-wise empty dataframe should print the header #6062

filmor opened this issue Jan 24, 2014 · 2 comments
Labels
IO HTML read_html, to_html, Styler.apply, Styler.applymap Output-Formatting __repr__ of pandas objects, to_string
Milestone

Comments

@filmor
Copy link
Contributor

filmor commented Jan 24, 2014

I'd expect the output of

pd.DataFrame(columns=["asdf", "bsdf"]).to_html()

to be essentially <th>asdf</th><th>bsdf</th> as an html table. This would be a lot more homogeneous. The current output is pretty useless, being basically repr(df).

@jreback
Copy link
Contributor

jreback commented Feb 18, 2014

want to submit a PR for this?

@jreback jreback modified the milestones: 0.15.0, 0.14.0 Feb 18, 2014
@jreback jreback modified the milestones: 0.14.0, 0.15.0 Feb 19, 2014
filmor added a commit to filmor/pandas that referenced this issue Mar 11, 2014
@jreback
Copy link
Contributor

jreback commented Mar 14, 2014

closed by #6405

@jreback jreback closed this as completed Mar 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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