Pandas json_normalize Not Working With Large JSON File In Python -
i trying normalize large (about 900 mb) json file pandas dataframe using json_normalize() function. works other files processing (which range 150-500 mb in size), although each take few minutes finish. file seems run forever , never finishes. have tried reading json file directly dataframe using read_json() before normalizing loading json file json.loads(). both methods have same result. code using is:
import pandas pd import json path = mf.getpath('datafile.json') testtrials = json.loads(open(path)) #testtrials = pd.read_json(path) testtrials = json_normalize(testtrials['rows'])
Comments
Post a Comment