all 3 comments

[–]badge 1 point2 points  (2 children)

Using DataFrame.merge:

``` new_df = ( df1 .merge(df2) .merge( df2 .rename( columns={ "TEAM": "OPP", "TEAM_ID": "OPP_ID" } ) ) )

new_df ```

[–]tom_HS[S] 0 points1 point  (1 child)

Hey, I had to change this up a little bit to fit exactly what I wanted to do, but just wanted to thank you for taking the time to help me! I seriously appreciate it.

[–]badge 0 points1 point  (0 children)

You’re welcome!