Skip to content

Instantly share code, notes, and snippets.

@thomas-scrace
Last active December 10, 2018 15:11
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 thomas-scrace/65feaf31babbc3e7763cc20340139cc8 to your computer and use it in GitHub Desktop.
Save thomas-scrace/65feaf31babbc3e7763cc20340139cc8 to your computer and use it in GitHub Desktop.
>>> properties_dict = {}
>>> for i, row in enumerate(csv.reader(open("Workbook1.csv", "r"))):
... if i == 0:
... continue
... props = row[17].replace("'", '"')
... properties_dict[i] = json.loads(props)
...
>>> for k, v in properties_dict.items():
... print(v["gender"])
...
Male
Female
Male
Male
Male
Male
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment