I am looking for a way to combine columns but not remove the data. I have a 1x30 daratrame. The columns names repeat throughout the df. I would like to combine the data so that all columns named the same are in the same column, but with multiple rows. I am trying to pipe this in and have been trying merge() but I can not seem to get it to work.
EX: 1
I would like to have the El Salvador cols combined but add a row so r1 has 18 and r2 has 2036, etc. for all the columns.