Skip to content

Instantly share code, notes, and snippets.

@lmiller1990
Created August 23, 2018 14:06
Show Gist options
  • Save lmiller1990/0213ef83a8d80fd481b229002b6e114b to your computer and use it in GitHub Desktop.
Save lmiller1990/0213ef83a8d80fd481b229002b6e114b to your computer and use it in GitHub Desktop.
df = load_and_clean_data()
team_games = team_games(df, 'team solomid')
opponents = opponent_games(df, 'team solomid', team_games.gameid)
result = team_games.merge(opponents, on="gameid")[['week', 'game', 'team', 'opponent', 'side', 'result', 'teamkills', 'teamdeaths']]
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment