daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top