Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ValueError: No engine for filetype: 'xlsk' [closed]

Tags:

python

excel

from datetime import datetime
x="Hello, it is now %s." % datetime.now().strftime('%d-%m-%Y %H:%M:%S')
import csv
try:
    with open('output.csv', 'w+') as csvFile:
        writer=csv.writer(csvFile)
        writer.writerow(x.encode('UTF-8'))
        print(x.encode('UTF-8'))
finally:
    csvFile.close()
import pandas as pd
data = pd.read_csv('output.csv')
data.to_excel('output.xlsk')

Is this office365 problem? or my code

environment:windows10


1 Answers

Your title answers the question. There is no such excel file format as '.xlsk'. Perhaps you meant

data.to_excel('output.xlsx')

?

like image 186
osprey Avatar answered Jun 05 '26 23:06

osprey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!