Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

read JSON file using Python

import json
import pandas as pd
data_file = open("yelp_academic_dataset_checkin.json")
data = []
for line in data_file:
 data.append(json.loads(line))
checkin_df = pd.DataFrame(data)
data_file.close()
Source by www.kaggle.com #
 
PREVIOUS NEXT
Tagged: #read #JSON #file #Python
ADD COMMENT
Topic
Name
6+9 =