how to save dataframe as csv in python numpy code example Example: save dataframe to csv df.to_csv(file_name, sep='\t')