python csv file empty code example Example: create empty csv file in python import pandas as pd df = pd.DataFrame(list()) df.to_csv('empty_csv.csv')