Skip to content

Instantly share code, notes, and snippets.

@waprin
Created August 13, 2018 16:28
Show Gist options
  • Save waprin/b4c5d82b8f04d7be9bad297c51c75fcc to your computer and use it in GitHub Desktop.
Save waprin/b4c5d82b8f04d7be9bad297c51c75fcc to your computer and use it in GitHub Desktop.
High level stats
won_matches = list(filter(lambda m : m.liquid_win, processed_matches))
print('Liquid won {} of the games.'.format(len(won_matches)))
wisp_banned = list(filter(lambda m: 'Io'in m.opponent_bans, processed_matches))
wisp_matches = list(filter(lambda m: 'Io' in m.liquid_picks, processed_matches))
print('Found {} out of {} games where Liquid picked Io.'.format(len(wisp_matches), len(processed_matches)))
print('Io was banned in {} matches.', len(wisp_banned))
wisp_lost_matches = filter(lambda m: not m.liquid_win, wisp_matches)
print('Wisp lost in {} of the games.'.format(len(list(wisp_lost_matches))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment