Apply styles while exporting to 'xlsx' in pandas with XlsxWriter

前端 未结 4 1122
刺人心
刺人心 2020-12-15 08:49

I use the .to_excel method of pandas to write a DataFrame as an Excel workbook. This works nice even for multi-index DataFrames as index cells become merged. When using the

4条回答
  •  既然无缘
    2020-12-15 09:35

    The next version of Pandas (2.0) will include experimental support for exporting styled DataFrames direct to Excel using openpyxl: http://pandas-docs.github.io/pandas-docs-travis/style.html#Export-to-Excel

提交回复
热议问题