While loading JSON file of covid-19 India data - i found the error in loading it.
the error is: name ’json’ is not defined
I have also added the code : import urllib.request - still it shows the same error.
full cod is here:
url = 'https://api.covid19india.org/states_daily.json' urllib.request.urlretrieve(url, 'data.json') with open('data.json') as f: data = json.load(f) data = data['states_daily'] df = pd.json_normalize(data)