I am using openpyxl to deal with some scientific data, when I was writing the list data to an excel file, I have a problem.
wb = openpyxl.Workbook(optimized_write=Ture)
ws_write = wb.create_sheet(0)
for i in range(row):
ws_write.append([datalist[i][0]])
wb.save(filename='data.xlsx')
When it is done, seems like that it only can write the list into the first column of the xlsx file. How can I assign the same col of my datalist to the same col of xlsx file in the same sheet? Is there any reference to control the output?