Hello I have 2 dataframes I want to combine
dataframe 1 :
ID | A | B | C |
---|---|---|---|
row1 | 1 | 2 | 3 |
row2 | 4 | 5 | 6 |
dataframe 2:
ID | A | B | D |
---|---|---|---|
row1 | 6 | 7 | 8 |
and I want them to merge and replace values of the same row to the values on dataframe 2 like this:
ID | A | B | C | D |
---|---|---|---|---|
row1 | 6 | 7 | 3 | 8 |
row2 | 4 | 5 | 6 | null |
how do I do this? I tried merging and concatenation but it doesn't seem to work. Thank you