1#Python, pandas
2#To export a pandas dataframe into Excel
3
4df.to_excel(r'Path where you want to store the exported excel file\File Name.xlsx', index = False)
5
1df2 = df1.copy()
2with pd.ExcelWriter('output.xlsx') as writer:
3 df1.to_excel(writer, sheet_name='Sheet_name_1')
4 df2.to_excel(writer, sheet_name='Sheet_name_2')