I have this two dataframes:
df1:
Team Goals Goal Against
1 Oly 20 5
2 PSG 6 4
3 Lil 3 6
4 Ars 10 3
5 Bar 8 9
df2:
Player Team Passes Shots
1 Player 1 Bar 20 5
2 Player 2 PSG 6 4
3 Player 3 Ars 3 6
I would like to add to df2 a new column 'Team Goal Against' which includes the info of 'Goal Against' of the df1. This column would read the info of the column Team of df2 and if it's the same of Team in df2 it would show the info of 'Goal Against' in the new column 'Team Goal Against'. The result in df2 would be:
Player Team Passes Shots Team Goal Against
1 Player 1 Bar 20 5 9
2 Player 2 PSG 6 4 4
3 Player 3 Ars 3 6 3
Any suggestion about how to do it? Thanks in advance!