Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 515 Bytes

read-json-file.md

File metadata and controls

15 lines (10 loc) · 515 Bytes

Read json file to pandas Dataframe

Reading a json file is very easy.

file_activeingredient = open('opencanada/activeingredient.json', 'r')

# Load the first sheet of the JSON file into a data frame
activeingredients = pd.read_json(file_activeingredient, orient='records')

# View the first ten rows
# print(activeingredients.head(10))

More info here and here.