download dataframe as csv

df.to_csv(r'Path where you want to store the exported CSV file\File Name.csv')

Here is what the above code is Doing:
1. We’re using the read_csv() method from Pandas to read the CSV file into a DataFrame.
2. We’re using the to_csv() method from Pandas to export the DataFrame into a CSV file.
3. We’re using the r prefix before the path string in order to read the string as a raw string.
4. We’re using the index parameter to specify that we don’t want to export the index column.