Can't export pandas dataframe to excel / encoding
问题 I'm unable to export one of my dataframes due to some encoding difficulty. sjM.dtypes Customer Name object Total Sales float64 Sales Rank float64 Visit_Frequency float64 Last_Sale datetime64[ns] dtype: object csv export works fine path = 'c:\\test' sjM.to_csv(path + '.csv') # Works but the excel export fails sjM.to_excel(path + '.xls') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "testing.py", line 338, in <module> sjM.to_excel(path + '.xls') File "c:\Anaconda