Im new to pandas and having trouble trying to merge data on specific 'keys'. I have a dataframe that contains rows, each row contains a column that has a list of keys. Im trying to merge each key if it matches to the column header of a different data frame.
df 1
index | team_id | players
0 | 1234 | [333, 444, 555]
1 | 5678 | [890, 098, 766]
df 2
| 333 | 766 |
height| 7" | 6" |
weight| 300lbs| 250lbs|
desired result
index | team_id | players
0 | 1234 | [(height: 7", weight: 300lbs), 444, 555 ]
1 | 5678 | [890, 098, (height: 6", weight: 250lbs)]