I want to add multiple columns in an existing csv. My data looks like this:
50451  51151  53266
 100    100    100
  1      1      1
where the data starting with (50...) are the columns and below them are the rows. I have another dataset which looks similar to this:
50014  50013  54567
 50     100    100
I am using this code to change it into csv:
df.to_csv('fort.csv', index = False)
but what it does is , it replaces the old columns with new ones. Since , I have to add multiple columns , I can't use df['50014'] everytime. If you guys could suggest something , I would greatly appreciate it.
 
     
    