I have a dataframe (snipet shown below) to which I want to split the cells so I can assign other information to them and then paste them back together. The issue im having is splitting them up but keeping each row together if that makes sense. Here an example of what i have and what im trying to do;
current df
newcolumn code name place
NA/NA 121/102 John/James GBR/GBR
NA/NA 100/103 Harry/Peter GBR/GBR
NA/NA 113/111 Will/Jamie GBR/GBR
NA/NA 109/112 Brian/Steve GBR/GBR
I now wish to seperate this df to something like this;
newcolumn code name place
NA 121 John GBR
NA 101 James GBR
NA 100 Harry GBR
NA 103 Peter GBR
NA 113 Will GBR
NA 111 Jamie GBR
NA 109 Brian GBR
NA 112 Steve GBR
Then after I have filled in my newcolumn I want to be able to past back together (maybe using a loop?) but this will be using row 1 and 2, 3 and 4 and so on