I have two dataframes:
df1= subj_id overall_id A B C
1 29 . . .
2 30 . . .
3 31 . . .
df2 = id D E F
29 1 2 3
29 4 5 6
29 7 8 9
30 1 2 3
30 4 5 6
31 1 2 3
I want to join them and create:
df = subj_id id D E F
1 29 1 2 3
1 29 4 5 6
1 29 7 8 9
2 30 1 2 3
2 30 4 5 6
3 31 1 2 3
What is the best way to do so?