I hope you're doing well. So I have two dataframes, and I want to change the values of a specific range using the other dataframe as following :
So I have these two dataframes
Dataframe 1 :
A B C
0 foo 2 3
1 foo 9 nan
2 foo 1 4
3 bar 90 1
4 boo 12 89
Dataframe 2 :
M N O
0 foo 8 19
1 foo 3 8
2 foo 5 nan
3 bar 0 16
4 boo 1 100
So I want to replace the values of B and C concerning the 'foo' item (column A) in dataframe 1 by the values of N and O concerning the 'foo' item (column M) that exist in dataframe 2 as following :
Dataframe 1 :
A B C
0 foo 8 19
1 foo 3 8
2 foo 5 nan
3 bar 90 1
4 boo 12 89