I'm am converting .csv's to .xlsx. Everything is going well except I keep getting this
This is my code:
def create_workbook(my_csv):
wb = Workbook()
ws = wb.active
with open(my_csv, 'r') as f:
for row in csv.reader(f):
ws.append(row)
wb.save(my_csv[:-4] + '.xlsx')
f.close()
I am wondering if anyone has ran into something similar, and how they went about fixing it. I am looking for something more robust than just renaming the column if possible.