Created
December 31, 2019 10:32
-
-
Save gokceneraslan/60cb4eb97300b40e24bd3d89101ecc21 to your computer and use it in GitHub Desktop.
OpenTargets - Generate flat dataframe from association_data.json file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gzip, json | |
from pandas.io.json import json_normalize | |
filename = '19.11_association_data.json.gz' | |
jlist = json_normalize([json.loads(x) for x in gzip.open(filename, 'rt').read().splitlines()]) | |
jlist.to_pickle('19.11_association_data.pkl') |
Author
gokceneraslan
commented
Dec 31, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment