My head is hurting after read post after post on this, and i cannot get the gist of how to solve this.
I have 2 pandas dataframes containing sports matches (simplified here):
A: Date, HomeTeam, AwayTeam
B: Date, HomeTeam, AwayTeam, HomeScore, AwayScore
A and B must merge into A.
Acontains more matches than B, and thus, Ais larger than BThe size of Amust be preserved (consider Aour "master").
Bmust fill in the HomeScore and AwayScore for each row where Date, HomeTeam and AwayTeam matches.
How can i merge these two properly?
I have considered using iterrows() or panda conditions pd[(a == b)], but I can not see how to solve it.