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
- read_csv and Its Useful Options
- Open Excel Sheets in pandas
- Parse Dates and Set dtypes on Load
- Save Results to CSV and Excel