Lesson 20 of 60
pythonWriting Data: Exporting DataFrames
15 minutes
Course progress33%
Exporting DataFrames
After processing, you often need to save results.
To CSV
df.to_csv('output/cleaned.csv', index=False)
To Excel
df.to_excel('output/report.xlsx', sheet_name='Summary', index=False)