Articles → PANDAS → Read Json Using Read_Json Function In Pandas

Read Json Using Read_Json Function In Pandas






Example


import pandas as pd
import json


jsonObject = json.dumps('{"Name": "Karan Gupta", "Age": 28, "Technology": "JSON", "Address": { "City": "Gurgaon",  "State": "Haryana"}}')


data = pd.read_json(jsonObject, lines=True)

data



Output


Picture showing the output of reading json using read_json function in pandas
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, May 16, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250