I have two dataframes
df1:
Person Value
Jack 6
Jill 9
Sam 4
Tony 3
df2:
Home Away
Jill Sam
Tony Jack
I wish to make a 3rd dataframe which grabs the number in the Value column from df1 and matches them to the names in df2
Goal output:
df3:
Home Away Value1 Value2
Jill Sam 9 4
Tony Jack 3 6
Is there a simple merge function I can perform on this?
Thanks