Answers for "pandas dataframe caption"

0

pandas dataframe caption

styles = [dict(selector="caption", 
    props=[("text-align", "center"),
    ("font-size", "120%"),
    ("color", 'black')])]    # the color value can not be None
# ...

    output += df.style.set_table_attributes("style='display:inline; font-size:110%' ")
        .set_caption(caption)
        .set_table_styles(styles)    # include styles
        ._repr_html_()
Posted by: Guest on February-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language