Guest User

Untitled

a guest
Jun 13th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def _group_by_state(self, results):
  2. ret = {}
  3. for r in results:
  4. state = r.geo.region
  5. if state not in ret:
  6. ret[state] = []
  7. ret[state].append(r)
  8. return ret
Add Comment
Please, Sign In to add comment