DataFrame.to_html() renders by default a table element with a border='1' attribute. The text-align style attribute on the Comment From: chris-b1 If you use the new style API the empty case ( Comment From: jreback in any event, this is a dupe of #11563 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
df.style.render()
) does not have any style attributes.
.