I have two dataframes df1 & df2 listed below
ID  Age Weight
1   30  62
2   40  80
3   28  77
4   35  70
ID  Age Weight
1   30  62
2   40  80
3   28  97
4   35  87
5   25  65
6   33  70
i want to compare Weight variable in df1 with df2 using ID field and i need the difference showing below
ID  Weight_df1  Weight_df2
3     77             97
4     70             87
 
     
    