import json import pandas as pd
resp = requests.get('https://data.cms.gov/provider-data/api/1/datastore/query/77hc-ibv8/0?offset=0&count=true&results=true&schema=true&keys=true&format=json')
data = resp.json()
data = json.dumps(resp_dict,indent=4)
print(data)
I am trying to unnest the json data into a dataframe using Python. There are a few ways to do it but wasn't able to fully unnest the json data. What would be the best way to accomplish this?
pd.DataFrame(data['results'])will make the frame.