pandas print dataframe as csv code example Example: save dataframe to csv df.to_csv(file_name, sep='\t')