covid folium code example
Example: covid folium
#We would use the requests module to pull the data from APIimport requests#Pulling the Worldwide COVID-19 data, we use the get function from requests module with API endpoint(Basically a URL address to request your data) as the function parameter. To know available endpoint, check the API documentationres = requests.get('https://api.thevirustracker.com/free-api?countryTotals=ALL')#We turn the data into json. It would become dictionary in the Python.covid_current = res.json()