how to use format read from xlrd and write thru xlsxwriter in python

后端 未结 1 577
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-25 01:27

I am reading an excel file using xlrd. Doing some macro replacing and then writing thru xlsxwriter. Without reading and copying formatting info the code works but when I add for

相关标签:
1条回答
  • 2021-01-25 01:30

    The Xlrd and XlsxWriter formats are different object types and are not interchangeable.

    If you wish to preserve formatting you will have to write some code that translates the properties from one to the other.

    0 讨论(0)
提交回复
热议问题