I have a Pandas dataframe inside of a Jupyter / IPython notebook. The dataframe's style as an HTML table inside of Jupyter is pretty nice. The header row has bold style, the font is nice, and the table borders are thin.
I then export the dataframe to an HTML file (following instructions here and here):
But the resulting HTML file's table styling is not good.
The HTML in that file is plain:
<table border="1" class="dataframe">
<tr style="text-align: right;">
How do I modify the styling of this exported table directly from my Python / Pandas code?