0
Q:

how to save a dataframe into an csv file

df.to_csv('out.csv')
14
df.to_csv(r'Path where you want to store the exported CSV file\File Name.csv', index = False)
16
df.to_csv(r'/directory/path/file_name.csv', index = False, header = True)
0
df.to_csv('file_name.csv', index=False)
1
df.to_csv(file_name, sep='\t')
7
df.to_csv(r'Path where you want to store the exported CSV file\File Name.csv')
0

New to Communities?

Join the community