I try to read an url with json data but return
ValueError: If using all scalar values, you must pass an index
How to eliminate the error? My code is
url = 'https://api.iextrading.com/1.0/stock/aapl/stats'
data = pd.read_json(url)
I try to read an url with json data but return
ValueError: If using all scalar values, you must pass an index
How to eliminate the error? My code is
url = 'https://api.iextrading.com/1.0/stock/aapl/stats'
data = pd.read_json(url)