I have two data frames that I would like to combine. DF1 has this form
index c1 c2 a1 1 2 a1 2 1 a1 3 1 b1 5 2 b1 4 7
DF2 is another dataset that shares a compressed version of an index
index c3 c4 a1 9 10 b1 7 8
I would like to populate DF1 with data from DF2
index c1 c2 c3 c4 a1 1 2 9 10 a1 2 1 9 10 a1 3 1 9 10 b1 5 2 7 8 b1 4 7 7 8
What is the most efficient way to do this?
source share