write csv with pandas write 3 columns by index code example
Example: python save df to csv
df.to_csv(r'/directory/path/file_name.csv', index = False, header = True)
df.to_csv(r'/directory/path/file_name.csv', index = False, header = True)