I have 2 dataframes, and I want to update the score of rows with the same 2 column values.
How can I do that?
df 1:
DEP ID | Team ID | Group | Score
001 | 002 | A | 50
001 | 004 | A | 70
002 | 002 | A | 50
002 | 007 | A | 90
df 2 (a subset of one department):
DEP ID | Team ID | Group | Result
001 | 002 | A | 80
001 | 003 | A | 60
001 | 004 | A | 70
OUTPUT: All columns with the same TeamID and Group update the score
DEP ID | Team ID | Group | Score
001 | 002 | A | 80
001 | 004 | A | 70
002 | 002 | A | 80
002 | 007 | A | 90
I've tried doing pd merge left join but I'm not really getting the expected result.
Any suggestions?