I have a dictionary of simulated team scores:
{'t1': 83,
't2': 82,
't3': 66,
't4': 74}
And a dataframe of matchups:
team_home score_home team_away score_away
t1 0 t2 0
t3 0 t4 0
I want to remap the scores in the dataframe with the corresponding team's score in the dictionary. The final output should look like this:
team_home score_home team_away score_away
t1 83 t2 82
t3 66 t4 74