Skip to content

Instantly share code, notes, and snippets.

@tengpeng
Created April 9, 2016 16:21
Show Gist options
  • Save tengpeng/1e4996861685ea0019df39e596829223 to your computer and use it in GitHub Desktop.
Save tengpeng/1e4996861685ea0019df39e596829223 to your computer and use it in GitHub Desktop.
dict match bid_img
bid_img = defaultdict(list)
for line in train_photo_to_biz_ids:
pid, bid2 = [v.strip() for v in line.split(',')]
bid2 = bid2.strip("\r\n")
bid_img[bid2].append(pid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment