convert a dataframe to a csv file code example
Example: save pandas into csv
df.to_csv(r'Path where you want to store the exported CSV file\File Name.csv', index = False)
df.to_csv(r'Path where you want to store the exported CSV file\File Name.csv', index = False)