Algorithm · Atlassian · Medium
A basketball results table named games stores one row per game from the perspective of a single team. It has the columns game_id, team_id, opponent_team_id, team_score, and opponent_team_score. The identical information is also handed to you as a pandas DataFrame called games containing team_id, opponent_team_id, team_score, and opponent_team_score, and as an R data frame with those same columns. For any row, define its score margin as team_score - opponent_team_score.…
Checking your access…