📌  相关文章
📜  pandas 数据框标题 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:03.229000             🧑  作者: Mango

代码示例1
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_()