does xlwt support xlsx Format

后端 未结 3 1499
情歌与酒
情歌与酒 2020-12-09 16:25

I have searched into google and found some contradiction. Does xlwt support xlsx file (MS office 2007). I heard that xlwt 0.7.4 support xlsx file. Does anyone tried xlsx fil

3条回答
  •  一整个雨季
    2020-12-09 17:22

    2019 update: xlwt doesn't support xlsx Format.

    XlsxWriter is 100% compatible with xlsx, well-maintained and has a good reputation.

    For reading xlsx files, you can use xlrd.

    You can also use Pandas if you've read+write requirements and want to create graphs and charts. (Pandas internally uses XlsxWriter modules to write the files).

    P.S. - The last x in xlsx stands for XML. xlsx is a zipped Open XML file. Use xlsx wherever possible. xls is the old (proprietary) format, which doesn't have some advanced features like conditional formatting or freezing col/rows etc.

提交回复
热议问题