General question - How to export the clean dataset

Hi all! This question is not for any chapter of this course.

After we clean the dataset, how to export the dataset to excel?
Thank you!!

You can use the df.to_excel() method. If you want to export to a .csv file, you can use df.to_csv().

Read more in the documentation:

pandas.DataFrame.to_excel

pandas.DataFrame.to_csv

1 Like

Thank you!! It is helpful

1 Like