I want to set the same index on different dataframes which have the same rows on some columns.
The dataframe has 10,000 rows, so I'll simplify it. For example:
df1:
Country Coin Market    Type    x    y   z
US      US$  Internal  Budget  1    2   3
US      US$  External  Budget  4    5   6
US      US$  Internal  Budget  7    8   9
Mexico  MXN$ External  Budget  1    2   3
df2:
Country Coin Market    Type    x    y   z
Mexico  MXN$ External  Real    1    6   3
US      US$  Internal  Real    2    3   5
US      US$  Internal  Real    5    8   7
US      US$  External  Real    1    7   4
So I would like to set the same index for rows that match 'Country', 'Coin' and 'Market', so then I could make some calculations between 'x', 'y' and 'z' for real vs budget values after sorting by index.
I need to set index because some rows on df1 are missing from df2.
Any help would be appreciated.
