pandas dataframe caption

Solutions on MaxInterview for pandas dataframe caption by the best coders in the world

showing results for - "pandas dataframe caption"
Nicole
11 Sep 2017
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