Skip to content

pandas.DataFrame.to_html() does not provide an option to remove all styling attributes #13887

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
MikaS opened this issue Aug 3, 2016 · 2 comments
Labels
Duplicate Report Duplicate issue or pull request IO HTML read_html, to_html, Styler.apply, Styler.applymap

Comments

@MikaS
Copy link

MikaS commented Aug 3, 2016

DataFrame.to_html() renders by default a table element with a border='1' attribute. The text-align style attribute on the is also set to "right".
Even if it is easy to override by code or CSS, it should be good to have an option that removes or clear all styling attributes on the generated table. For example df.to_html(no_style=True)
Cheers,
Mikaël

@chris-b1
Copy link
Contributor

chris-b1 commented Aug 3, 2016

If you use the new style API the empty case (df.style.render()) does not have any style attributes.

@jreback
Copy link
Contributor

jreback commented Aug 3, 2016

in any event, this is a dupe of #11563

@jreback jreback closed this as completed Aug 3, 2016
@jreback jreback added IO HTML read_html, to_html, Styler.apply, Styler.applymap Duplicate Report Duplicate issue or pull request labels Aug 3, 2016
@jreback jreback added this to the No action milestone Aug 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request IO HTML read_html, to_html, Styler.apply, Styler.applymap
Projects
None yet
Development

No branches or pull requests

3 participants