Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dataframe nested json

d = {"response": {"body": {"contact": {"email": "mr@abc.com", "mobile_number": "0123456789"}, "personal": {"last_name": "Muster", "gender": "m", "first_name": "Max", "dob": "1985-12-23", "family_status": "single", "title": "Dr."}, "customer": {"verified": "true", "customer_id": "1234567"}}, "token": "dsfgf", "version": "1.1"}}

df = pd.json_normalize(d)
print(df)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dataframe #nested #json
ADD COMMENT
Topic
Name
4+5 =