As with the @aus_lacy clause, you just need to first read the csv file in the data frame, merge the two data frames and write them back to the csv file:
suggested that your existing data frame is called df :
df_csv = pd.read_csv(outputPath, 'your settings here')
df_csv['to new column'] = df['from single column']
df_csv.to_csv(outputPath, 'again your settings here')
What is it.
Anzel source
share