I have the following df1:
Id value
'so' 5
'fe' 6
'd1' 4
Then I have a ref_df:
Id value
'so' 3
'fe' 3
'ju' 2
'd1' 1
I want to check that if any of the Ids in ref_df appear in df1, then replace the value in df1 by the ref_df.
The desired output would be:
Id value
'so' 3
'fe' 3
'd1' 1
How can I achieve this?