1with pd.ExcelWriter('mult_sheets_1.xlsx') as writer1:
2 df_1.to_excel(writer1, sheet_name = 'df_1', index = False)
3 df_2.to_excel(writer1, sheet_name = 'df_2', index = False)
4
1with pd.ExcelWriter('mult_sheets_1.xlsx') as writer1:
2 df_1.to_excel(writer1, sheet_name = 'df_1', index = False)
3 df_2.to_excel(writer1, sheet_name = 'df_2', index = False)
4
1with pd.ExcelWriter('mult_sheets_1.xlsx') as writer1:
2 df_1.to_excel(writer1, sheet_name = 'df_1', index = False)
3 df_2.to_excel(writer1, sheet_name = 'df_2', index = False)
4
1writer2 = pd.ExcelWriter('mult_sheets_2.xlsx')
2
3df_1.to_excel(writer2, sheet_name = 'df_1', index = False)
4df_2.to_excel(writer2, sheet_name = 'df_2', index = False)
5
6writer2.save()