The function to_excel of pandas generate an unexpected TypeError

后端 未结 1 1853
独厮守ぢ
独厮守ぢ 2020-12-16 13:39

I created a dictionary of pandas dataframe:

d[k] = pd.DataFrame(data=data[i])

So I assume that d[k] is a correct pandas dataframe.<

相关标签:
1条回答
  • 2020-12-16 14:13

    I have same problem with openpyxl=3.0.2,

    Refer to this answer, I roll openpyxl back to 3.0.1(conda or pip) and it works.

    >>> conda remove openpyxl
    >>> conda install openpyxl==3.0.1
    

    or

    >>> pip uninstall openpyxl
    >>> pip install openpyxl==3.0.1
    
    0 讨论(0)
提交回复
热议问题