for col_num, value in enumerate(values_to_insert, start=1):
sheet.cell(row=client.row_number, column=col_num, value=value)
workbook.save('analysis.xlsx')
One can understand why sheet.append() is slow [it must be iterating till the last row everytime] but sheet.cell(row=client.row_number, column=col_num, value=value) shouldn't behave the same way because I am providing the row number manually. There should be an insertion to that row directly skipping the iterations altogether .
One can understand why
sheet.append()
is slow [it must be iterating till the last row everytime] butsheet.cell(row=client.row_number, column=col_num, value=value)
shouldn't behave the same way because I am providing the row number manually. There should be an insertion to that row directly skipping the iterations altogether .