Skip to content

Instantly share code, notes, and snippets.

@aq1
Created May 31, 2016 14:18
Show Gist options
  • Save aq1/6d5d62ec14f2530aa4d2d2da5069ecb4 to your computer and use it in GitHub Desktop.
Save aq1/6d5d62ec14f2530aa4d2d2da5069ecb4 to your computer and use it in GitHub Desktop.
types = {
3: c1,
5: c2,
7: c3,
9: c4,
14: c5,
}
for f in features:
type_ = types.get(f['type'])
if type_:
data.append(f["name"][:f["name"].index(" (")])
type_ += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment