import xlsxwriter
# Create a Pandas Excel writer using XlsxWriter as the engine.
writer = pd.ExcelWriter('spam.xlsx', engine='xlsxwriter', options={'encoding':'utf-8'})
# Convert the dataframe to an XlsxWriter Excel object.
list.to_excel(writer, sheet_name='Sheet1',encoding='utf-8')
writer.save()
print("done")
# Create a Pandas Excel writer using XlsxWriter as the engine.
writer = pd.ExcelWriter('spam.xlsx', engine='xlsxwriter', options={'encoding':'utf-8'})
# Convert the dataframe to an XlsxWriter Excel object.
list.to_excel(writer, sheet_name='Sheet1',encoding='utf-8')
writer.save()
print("done")
No comments:
Post a Comment