Pandas: can not write to excel file

后端 未结 4 569
南笙
南笙 2021-01-02 02:35

Trying this example from the documentation

writer = ExcelWriter(\'output.xlsx\')
df1.to_excel(writer,\'Sheet1\')
df2.to_excel(writer,\'Sheet2\')
writer.save         


        
4条回答
  •  旧巷少年郎
    2021-01-02 03:03

    For fast solution replace this

    xcell.style = xcell.style.copy(**style_kwargs)
    

    with

    pass
    

    At pandas/io/excel.py line 778.

    openpyxl upgraded their api and pandas also need to be updated for support openpyxl.

提交回复
热议问题