# Saving the Clean Data: to_csv and to_excel

A clean table lives only as long as the notebook's kernel, so to_csv with index=False saves it as a file the next notebook can load, to_excel saves a workbook for people who use Excel, and keeping data/raw and data/clean folders, with a save function that refuses the raw folder, means the raw file is never written over.

![Cheat sheet: Saving the Clean Data: to_csv and to_excel](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/0efeb53414844f85bd76a6538e5685e3.webp)

- Category: Data Analysis
- Level: Apprentice
- Tags: CSV File, python, Raw Data, to_csv(), to_excel()
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/pandas-saving-data-cheat-sheet
