-
-
Save lmiller1990/cc113a46b276714e9fa283626f7869d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stats['wins'] = [] | |
for team in teams: | |
stats['wins'].append(team_games(df, team).result.sum()) | |
result = pd.DataFrame(stats, index=teams) | |
print(result.sort_values(by='wins', ascending=False)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment