1df.to_excel(r'C:\Users\Ron\Desktop\File_Name.xlsx', index = False)
2
3#if you omit the file path (must also omit 'r') and
4#enter only file_name.xlsx, it will save to your default file location,
5# that is, where the file you're reading from is located.
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