You can use the to_csv() function to write a Pandas DataFrame to a CSV file. Pass in a string argument to name the file:
df.to_csv('file_name.csv')
You can use the to_csv() function to write a Pandas DataFrame to a CSV file. Pass in a string argument to name the file:
df.to_csv('file_name.csv')