[英]How to set color for last row in excel using pandas python
I am using pandas to read data from csv file and write into excel . 我正在使用熊猫从csv文件读取数据并写入excel。 I have done that one.
我已经做到了。 I want to set bgcolor for last row in excel using pandas.
我想使用熊猫在Excel的最后一行设置bgcolor。 Can anyone plz give some ideas to set color for last row.
任何人都可以提出一些想法来设置最后一行的颜色。
I'm not sure if Pandas
has capability to do this. 我不确定
Pandas
是否有能力做到这一点。 However, once you save your file using Pandas
, you can reload it and later change the last row color using xlsxwriter
. 但是,使用
Pandas
保存文件后,您可以重新加载文件,然后使用xlsxwriter
更改最后一行的颜色。
Refer here for how to use xlsxwriter . 有关如何使用xlsxwriter的信息,请参见此处。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.