I have a dict with 100s of panda dfs.
I want to loop through each df in the dict and dump it into excel, all on a single sheet, one after another with 1 blank row inbetween.
My attempt:
writer = pd.ExcelWriter('output.xlsx', engine='xlsxwriter')
workbook = writer.book
for key, values in dd.iteritems():
df = dd[key]['chart_data']
df.to_excel(writer, sheet_name='Sheet 1', index=False)
writer.save()
workbook.close()
I think it overwrites the dfs.
Any suggestions?
startrowin.toexcel(). By default it pastes from the top-left, which is not what you want here.