# append with mode = 'a' # no header for existing files this way output_path='my_csv.csv' df.to_csv(output_path, mode='a', header=not os.path.exists(output_path))