1styles = [dict(selector="caption",
2 props=[("text-align", "center"),
3 ("font-size", "120%"),
4 ("color", 'black')])] # the color value can not be None
5# ...
6
7 output += df.style.set_table_attributes("style='display:inline; font-size:110%' ")
8 .set_caption(caption)
9 .set_table_styles(styles) # include styles
10 ._repr_html_()
11