0Pricing
Data Science Academy · Lesson

Save Results to CSV and Excel

Exporting analysis for sharing.

Analysis Has to Travel

Your cleaned table is only useful if others can open it. The last step of most projects is writing results back out to a file. 📤

Write a CSV in One Line

Save any DataFrame to disk with to_csv. Pass a filename and pandas writes every row and column for you.

df.to_csv("clean_sales.csv")

All lessons in this course

  1. read_csv and Its Useful Options
  2. Open Excel Sheets in pandas
  3. Parse Dates and Set dtypes on Load
  4. Save Results to CSV and Excel
← Back to Data Science Academy