I have two dataframes:
df1 = [ A     B
        X    y1
        XX   y2 ]
df2 = [ X    XX
        1    2
        2    3 ]
I want to replace the names of the df2 (X, XX) with the values of the same index in df1. So my result will be:
df2 = [ y1    y2
         1    2
         2    3 ]
 
     
    