I have a dataframe with 12,000 rows and 34 columns. It takes around 15 sec for pandas to write this to the excel. I read few discussion about to_excel function and one way t
You can use pyexcelerate to get a much faster speed.
from pyexcelerate import Workbook values = [res_df.columns] + list(res_df.values) wb = Workbook() wb.new_sheet('sheet name', data=values) wb.save('outputfile.xlsx')