I have two pandas data frames:
df1:
column
index1
rec-1 foo
rec-2 bar
rec-3 bar
: :
df2:
test
index2
rec-1-b baz
rec-2-b foo
rec-3-b quux
: :
along with a MultiIndex object
multiIndex1:
(rec-1,rec-1-b)
(rec-2,rec-3-b)
:
linking the two data frames together. How would I now obtain a data frame that looks like this:
joined_df:
column test
index1 index2
rec-1 rec-1-b foo baz
rec-2 rec-3-b bar quux
: : : :