Skip to content

Instantly share code, notes, and snippets.

@breyten
Created August 28, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breyten/c04648ad80b9dd91feb5 to your computer and use it in GitHub Desktop.
Save breyten/c04648ad80b9dd91feb5 to your computer and use it in GitHub Desktop.
combine_results.py
party_counts = sorted([
{'party': p, 'count': get_party_count(p, session)} for p in parties],
key=lambda x: x['count'])
pprint(party_counts)
all_people = politicians + executives
politician_counts = sorted([
{'politician': p, 'count': get_politician_count(p, session)} for p in all_people],
key=lambda x: x['count'])
pprint(politician_counts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment