【发布时间】:2020-08-28 07:22:07
【问题描述】:
我有一个dataframedf:
A B LongColName1 AnotherNa AnotherName3
Brunner Island is not island Baltimore is town 0.26 3.88 3.75
Brunner Island is not island Baltimore is town -0.59 1.47 2.01
当我将上述数据框转储到 excel 时,它在 excel 中显示如下:
有没有办法设置数据框的样式,以便转储到 excel 如下所示:
【问题讨论】:
标签: python pandas dataframe python-3.8 pandas.excelwriter