简体   繁体   中英

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 . I have done that one. I want to set bgcolor for last row in excel using pandas. Can anyone plz give some ideas to set color for last row.

I'm not sure if Pandas has capability to do this. However, once you save your file using Pandas , you can reload it and later change the last row color using xlsxwriter .

Refer here for how to use xlsxwriter .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM