0
url = "https://api.defhc.com/v5/odata-v4/Hospitals?$top=500"

res = requests.get(url,headers={"Authorization": "Bearer %s" % access_token}).json()

df = pd.DataFrame(res)

Getting this error:

TypeError: Cannot interpret '<attribute 'dtype' of 'numpy.generic' objects>' as a data type

I want to be able to store the data in a DataFrame in Pandas so I can perform some analysis.

j__carlson
  • 1,346
  • 3
  • 12
  • 20

0 Answers0