new data source for population: from same datasource, now in separate file

This commit is contained in:
fordprefect
2020-09-01 11:07:31 +02:00
parent 1bae7d02fc
commit 981492eb87
2 changed files with 216 additions and 183 deletions

View File

@@ -8,6 +8,7 @@ import matplotlib.pyplot as pp
import numpy as np import numpy as np
import sys import sys
import importlib import importlib
import time
sys.path.append(".") sys.path.append(".")
#### config #### config
@@ -20,201 +21,33 @@ plots = ["basics", "death_per_case",
"all_countries", "all_countries",
] ]
### manual data ### manual data
# population: sourced from wikidata and manually adjusted. not complete wrt the ECDC data! # population: sourced ECDC data
pop = {'Afghanistan': {'wd_key': 'Afghanistan', 'pop': 34940837}, from population_repository import pop
'Albania': {'wd_key': 'Albania', 'pop': 3020209},
'Algeria': {'wd_key': 'Algeria', 'pop': 41318142},
'Andorra': {'wd_key': 'Andorra', 'pop': 76177},
'Angola': {'wd_key': 'Angola', 'pop': 29784193},
'Antigua and Barbuda': {'wd_key': 'Antigua and Barbuda', 'pop': 102012},
'Argentina': {'wd_key': 'Argentina', 'pop': 44938712},
'Armenia': {'wd_key': 'Armenia', 'pop': 2930450},
'Australia': {'wd_key': 'Australia', 'pop': 24511800},
'Austria': {'wd_key': 'Austria', 'pop': 8809212},
'Azerbaijan': {'wd_key': 'Azerbaijan', 'pop': 10000000},
'Bahamas': {'wd_key': 'The Bahamas', 'pop': 395361},
'Bahrain': {'wd_key': 'Bahrain', 'pop': 1492584},
'Bangladesh': {'wd_key': 'Bangladesh', 'pop': 164669751},
'Barbados': {'wd_key': 'Barbados', 'pop': 285719},
'Belarus': {'wd_key': 'Belarus', 'pop': 9408400},
'Belgium': {'wd_key': 'Belgium', 'pop': 11431406},
'Belize': {'wd_key': 'Belize', 'pop': 374681},
'Benin': {'wd_key': 'Benin', 'pop': 11175692},
'Bhutan': {'wd_key': 'Bhutan', 'pop': 807610},
'Bolivia': {'wd_key': 'Bolivia', 'pop': 11051600},
'Bosnia and Herzegovina': {'wd_key': 'Bosnia and Herzegovina', 'pop': 3507017},
'Botswana': {'wd_key': 'Botswana', 'pop': 2291661},
'Brazil': {'wd_key': 'Brazil', 'pop': 210147125},
'Brunei': {'wd_key': 'Brunei', 'pop': 428697},
'Bulgaria': {'wd_key': 'Bulgaria', 'pop': 7000039},
'Burkina Faso': {'wd_key': 'Burkina Faso', 'pop': 19193382},
'Burundi': {'wd_key': 'Burundi', 'pop': 10864245},
'Cambodia': {'wd_key': 'Cambodia', 'pop': 16005373},
'Cameroon': {'wd_key': 'Cameroon', 'pop': 24053727},
'Canada': {'wd_key': 'Canada', 'pop': 37894799},
'Cape Verde': {'wd_key': 'Cape Verde', 'pop': 546388},
'Central African Republic': {'wd_key': 'Central African Republic', 'pop': 4659080},
'Chad': {'wd_key': 'Chad', 'pop': 15477751},
'Chile': {'wd_key': 'Chile', 'pop': 18054726},
'China': {'wd_key': "People's Republic of China", 'pop': 1409517397},
'Colombia': {'wd_key': 'Colombia', 'pop': 49065615},
'Comoros': {'wd_key': 'Comoros', 'pop': 823652},
'Costa Rica': {'wd_key': 'Costa Rica', 'pop': 4905769},
'Croatia': {'wd_key': 'Croatia', 'pop': 4105493},
'Cuba': {'wd_key': 'Cuba', 'pop': 11484636},
'Cyprus': {'wd_key': 'Cyprus', 'pop': 1141166},
'Czech Republic': {'wd_key': 'Czech Republic', 'pop': 10693939},
'Denmark': {'wd_key': 'Denmark', 'pop': 5827463},
'Djibouti': {'wd_key': 'Djibouti', 'pop': 956985},
'Dominica': {'wd_key': 'Dominica', 'pop': 73925},
'Dominican Republic': {'wd_key': 'Dominican Republic', 'pop': 10403761},
'Ecuador': {'wd_key': 'Ecuador', 'pop': 16624858},
'Egypt': {'wd_key': 'Egypt', 'pop': 94798827},
'El Salvador': {'wd_key': 'El Salvador', 'pop': 6420746},
'Equatorial Guinea': {'wd_key': 'Equatorial Guinea', 'pop': 1267689},
'Eritrea': {'wd_key': 'Eritrea', 'pop': 3497000},
'Estonia': {'wd_key': 'Estonia', 'pop': 1324820},
'Ethiopia': {'wd_key': 'Ethiopia', 'pop': 104957438},
'Fiji': {'wd_key': 'Fiji', 'pop': 905502},
'Finland': {'wd_key': 'Finland', 'pop': 5501043},
'France': {'wd_key': 'France', 'pop': 66628000},
'Gabon': {'wd_key': 'Gabon', 'pop': 2025137},
'Gambia': {'wd_key': 'The Gambia', 'pop': 2100568},
'Georgia': {'wd_key': 'Georgia', 'pop': 3717100},
'Germany': {'wd_key': 'Germany', 'pop': 83149300},
'Ghana': {'wd_key': 'Ghana', 'pop': 26908262},
'Greece': {'wd_key': 'Greece', 'pop': 10760421},
'Grenada': {'wd_key': 'Grenada', 'pop': 107825},
'Guatemala': {'wd_key': 'Guatemala', 'pop': 17263239},
'Guinea': {'wd_key': 'Equatorial Guinea', 'pop': 1267689},
'Guinea-Bissau': {'wd_key': 'Guinea-Bissau', 'pop': 1861283},
'Guyana': {'wd_key': 'Guyana', 'pop': 777859},
'Haiti': {'wd_key': 'Haiti', 'pop': 10981229},
'Honduras': {'wd_key': 'Honduras', 'pop': 9265067},
'Hungary': {'wd_key': 'Hungary', 'pop': 9937628},
'Iceland': {'wd_key': 'Iceland', 'pop': 357050},
'India': {'wd_key': 'India', 'pop': 1326093247},
'Indonesia': {'wd_key': 'Indonesia', 'pop': 263991379},
'Iran': {'wd_key': 'Iran', 'pop': 79966230},
'Iraq': {'wd_key': 'Iraq', 'pop': 38274618},
'Ireland': {'wd_key': 'Ireland', 'pop': 4761865},
'Israel': {'wd_key': 'Israel', 'pop': 9093000},
'Italy': {'wd_key': 'Italy', 'pop': 60317000},
'Jamaica': {'wd_key': 'Jamaica', 'pop': 2890299},
'Japan': {'wd_key': 'Japan', 'pop': 126785797},
'Jordan': {'wd_key': 'Jordan', 'pop': 10428241},
'Kazakhstan': {'wd_key': 'Kazakhstan', 'pop': 18276500},
'Kenya': {'wd_key': 'Kenya', 'pop': 48468138},
'Kuwait': {'wd_key': 'Kuwait', 'pop': 4600000},
'Kyrgyzstan': {'wd_key': 'Kyrgyzstan', 'pop': 6201500},
'Laos': {'wd_key': 'Laos', 'pop': 6858160},
'Latvia': {'wd_key': 'Latvia', 'pop': 1909000},
'Lebanon': {'wd_key': 'Lebanon', 'pop': 6100075},
'Lesotho': {'wd_key': 'Lesotho', 'pop': 2233339},
'Liberia': {'wd_key': 'Liberia', 'pop': 4731906},
'Libya': {'wd_key': 'Libya', 'pop': 6678567},
'Liechtenstein': {'wd_key': 'Liechtenstein', 'pop': 37922},
'Lithuania': {'wd_key': 'Lithuania', 'pop': 2790842},
'Luxembourg': {'wd_key': 'Luxembourg', 'pop': 626108},
'Macedonia': {'wd_key': 'North Macedonia', 'pop': 2075301},
'Madagascar': {'wd_key': 'Madagascar', 'pop': 25570895},
'Malawi': {'wd_key': 'Malawi', 'pop': 18622104},
'Malaysia': {'wd_key': 'Malaysia', 'pop': 31624264},
'Maldives': {'wd_key': 'Maldives', 'pop': 436330},
'Mali': {'wd_key': 'Mali', 'pop': 18541980},
'Malta': {'wd_key': 'Malta', 'pop': 465292},
'Mauritania': {'wd_key': 'Mauritania', 'pop': 4420184},
'Mauritius': {'wd_key': 'Mauritius', 'pop': 1264613},
'Mexico': {'wd_key': 'Mexico', 'pop': 130526945},
'Moldova': {'wd_key': 'Moldova', 'pop': 2550900},
'Monaco': {'wd_key': 'Monaco', 'pop': 38695},
'Mongolia': {'wd_key': 'Mongolia', 'pop': 3075647},
'Montenegro': {'wd_key': 'Montenegro', 'pop': 622359},
'Morocco': {'wd_key': 'Morocco', 'pop': 36029138},
'Mozambique': {'wd_key': 'Mozambique', 'pop': 29668834},
'Myanmar': {'wd_key': 'Myanmar', 'pop': 53370609},
'Namibia': {'wd_key': 'Namibia', 'pop': 2533794},
'Nepal': {'wd_key': 'Nepal', 'pop': 29400000},
'Netherlands': {'wd_key': 'Kingdom of the Netherlands', 'pop': 17100715},
'New Zealand': {'wd_key': 'New Zealand', 'pop': 4942500},
'Nicaragua': {'wd_key': 'Nicaragua', 'pop': 6217581},
'Niger': {'wd_key': 'Niger', 'pop': 21477348},
'Nigeria': {'wd_key': 'Nigeria', 'pop': 190886311},
'Norway': {'wd_key': 'Norway', 'pop': 5367580},
'Oman': {'wd_key': 'Oman', 'pop': 4829480},
'Pakistan': {'wd_key': 'Pakistan', 'pop': 197015955},
'Panama': {'wd_key': 'Panama', 'pop': 4098587},
'Papua New Guinea': {'wd_key': 'Papua New Guinea', 'pop': 8251162},
'Paraguay': {'wd_key': 'Paraguay', 'pop': 6811297},
'Peru': {'wd_key': 'Peru', 'pop': 29381884},
'Philippines': {'wd_key': 'Philippines', 'pop': 104918090},
'Poland': {'wd_key': 'Poland', 'pop': 38433600},
'Portugal': {'wd_key': 'Portugal', 'pop': 10600000},
'Qatar': {'wd_key': 'Qatar', 'pop': 2639211},
'Romania': {'wd_key': 'Romania', 'pop': 19586539},
'Russia': {'wd_key': 'Russia', 'pop': 146804372},
'Rwanda': {'wd_key': 'Rwanda', 'pop': 12208407},
'Saint Kitts and Nevis': {'wd_key': 'Saint Kitts and Nevis', 'pop': 55345},
'Saint Lucia': {'wd_key': 'Saint Lucia', 'pop': 178844},
'Saint Vincent and the Grenadines': {'wd_key': 'Saint Vincent and the Grenadines', 'pop': 109897},
'San Marino': {'wd_key': 'San Marino', 'pop': 33400},
'Saudi Arabia': {'wd_key': 'Saudi Arabia', 'pop': 33000000},
'Senegal': {'wd_key': 'Senegal', 'pop': 15850567},
'Serbia': {'wd_key': 'Serbia', 'pop': 7022268},
'Seychelles': {'wd_key': 'Seychelles', 'pop': 95843},
'Sierra Leone': {'wd_key': 'Sierra Leone', 'pop': 7557212},
'Singapore': {'wd_key': 'Singapore', 'pop': 5888926},
'Slovakia': {'wd_key': 'Slovakia', 'pop': 5397036},
'Slovenia': {'wd_key': 'Slovenia', 'pop': 2066880},
'Somalia': {'wd_key': 'Somalia', 'pop': 11031386},
'South Africa': {'wd_key': 'South Africa', 'pop': 57725600},
'South Korea': {'wd_key': 'South Korea', 'pop': 51466201},
'South Sudan': {'wd_key': 'South Sudan', 'pop': 12575714},
'Spain': {'wd_key': 'Spain', 'pop': 46733038},
'Sri Lanka': {'wd_key': 'Sri Lanka', 'pop': 21444000},
'Sudan': {'wd_key': 'Sudan', 'pop': 40533330},
'Suriname': {'wd_key': 'Suriname', 'pop': 563402},
'Sweden': {'wd_key': 'Sweden', 'pop': 10343403},
'Switzerland': {'wd_key': 'Switzerland', 'pop': 8466017},
'Syria': {'wd_key': 'Syria', 'pop': 18269868},
'Tajikistan': {'wd_key': 'Tajikistan', 'pop': 8921343},
'Tanzania': {'wd_key': 'Tanzania', 'pop': 57310019},
'Thailand': {'wd_key': 'Thailand', 'pop': 65931550},
'Timor': {'wd_key': 'East Timor', 'pop': 1296311},
'Togo': {'wd_key': 'Togo', 'pop': 7797694},
'Trinidad and Tobago': {'wd_key': 'Trinidad and Tobago', 'pop': 1369125},
'Tunisia': {'wd_key': 'Tunisia', 'pop': 11565204},
'Turkey': {'wd_key': 'Turkey', 'pop': 82003882},
'Uganda': {'wd_key': 'Uganda', 'pop': 42862958},
'Ukraine': {'wd_key': 'Ukraine', 'pop': 42558328},
'United Arab Emirates': {'wd_key': 'United Arab Emirates', 'pop': 9400145},
'United Kingdom': {'wd_key': 'United Kingdom', 'pop': 66022273},
'United States': {'wd_key': 'United States of America', 'pop': 325145963},
'Uruguay': {'wd_key': 'Uruguay', 'pop': 3456750},
'Uzbekistan': {'wd_key': 'Uzbekistan', 'pop': 32387200},
'Vatican': {'wd_key': 'Vatican City', 'pop': 1000},
'Venezuela': {'wd_key': 'Venezuela', 'pop': 28515829},
'Vietnam': {'wd_key': 'Vietnam', 'pop': 94660000},
'Yemen': {'wd_key': 'Yemen', 'pop': 28250420},
'Zambia': {'wd_key': 'Zambia', 'pop': 17094130},
'Zimbabwe': {'wd_key': 'Zimbabwe', 'pop': 16529904},
'World': {'wd_key': 'entered by hand', 'pop': 7713468000},
'Taiwan': {'wd_key': 'entered by hand', 'pop': 23574274},
'Palestine': {'wd_key': 'entered by hand', 'pop': 4976684},
}
### ###
def get_data(): def get_data():
"""fetch data from remote, cache locally and reorganize internal data """fetch data from remote, cache locally and reorganize internal data
not beautiful (at all), but effective!!""" not beautiful (at all), but effective!!"""
tries = 10
delay = 10
dataurl = "https://covid.ourworldindata.org/data/ecdc/full_data.csv" dataurl = "https://covid.ourworldindata.org/data/ecdc/full_data.csv"
date = datetime.date.today() date = datetime.date.today()
datafile = f"{date}-full-data.csv" datafile = f"{date}-full-data.csv"
if not os.path.isfile(datafile): if not os.path.isfile(datafile):
r = requests.get(dataurl)
for n in tries:
try:
r = requests.get(dataurl)
except:
print(f"==> download failed, retrying after {delay}s up to another {tries-n} times…")
time.sleep(delay)
continue
break
with open(datafile, "wb") as f: with open(datafile, "wb") as f:
f.write(r.content) f.write(r.content)
else: else:

200
population_repository.py Normal file
View File

@@ -0,0 +1,200 @@
pop = {'Afghanistan': {'key': 'Afghanistan', 'pop': 38928341, 'year': 2020},
'Albania': {'key': 'Albania', 'pop': 2877800, 'year': 2020},
'Algeria': {'key': 'Algeria', 'pop': 43851043, 'year': 2020},
'Andorra': {'key': 'Andorra', 'pop': 77265, 'year': 2020},
'Angola': {'key': 'Angola', 'pop': 32866268, 'year': 2020},
'Anguilla': {'key': 'Anguilla', 'pop': 15002, 'year': 2020},
'Antigua and Barbuda': {'key': 'Antigua_and_Barbuda', 'pop': 97928, 'year': 2020},
'Argentina': {'key': 'Argentina', 'pop': 45195777, 'year': 2020},
'Armenia': {'key': 'Armenia', 'pop': 2963234, 'year': 2020},
'Aruba': {'key': 'Aruba', 'pop': 106766, 'year': 2020},
'Australia': {'key': 'Australia', 'pop': 25499881, 'year': 2020},
'Austria': {'key': 'Austria', 'pop': 9006400, 'year': 2020},
'Azerbaijan': {'key': 'Azerbaijan', 'pop': 10139175, 'year': 2020},
'Bahamas': {'key': 'Bahamas', 'pop': 393248, 'year': 2020},
'Bahrain': {'key': 'Bahrain', 'pop': 1701583, 'year': 2020},
'Bangladesh': {'key': 'Bangladesh', 'pop': 164689383, 'year': 2020},
'Barbados': {'key': 'Barbados', 'pop': 287371, 'year': 2020},
'Belarus': {'key': 'Belarus', 'pop': 9449321, 'year': 2020},
'Belgium': {'key': 'Belgium', 'pop': 11589616, 'year': 2020},
'Belize': {'key': 'Belize', 'pop': 397621, 'year': 2020}, 'Benin': {'key': 'Benin', 'pop': 12123198, 'year': 2020},
'Bermuda': {'key': 'Bermuda', 'pop': 62273, 'year': 2020},
'Bhutan': {'key': 'Bhutan', 'pop': 771612, 'year': 2020},
'Bolivia': {'key': 'Bolivia', 'pop': 11673029, 'year': 2020},
'Bonaire Sint Eustatius and Saba': {'key': 'Bonaire, Saint Eustatius and Saba', 'pop': 26221, 'year': 2020},
'Bosnia and Herzegovina': {'key': 'Bosnia_and_Herzegovina', 'pop': 3280815, 'year': 2020},
'Botswana': {'key': 'Botswana', 'pop': 2351625, 'year': 2020},
'Brazil': {'key': 'Brazil', 'pop': 212559409, 'year': 2020},
'British Virgin Islands': {'key': 'British_Virgin_Islands', 'pop': 30237, 'year': 2020},
'Brunei': {'key': 'Brunei_Darussalam', 'pop': 437483, 'year': 2020},
'Bulgaria': {'key': 'Bulgaria', 'pop': 6948445, 'year': 2020},
'Burkina Faso': {'key': 'Burkina_Faso', 'pop': 20903278, 'year': 2020},
'Burundi': {'key': 'Burundi', 'pop': 11890781, 'year': 2020},
'Cambodia': {'key': 'Cambodia', 'pop': 16718971, 'year': 2020},
'Cameroon': {'key': 'Cameroon', 'pop': 26545864, 'year': 2020},
'Canada': {'key': 'Canada', 'pop': 37742157, 'year': 2020},
'Cape Verde': {'key': 'Cape_Verde', 'pop': 555988, 'year': 2020},
'Cayman Islands': {'key': 'Cayman_Islands', 'pop': 65720, 'year': 2020},
'Central African Republic': {'key': 'Central_African_Republic', 'pop': 4829764, 'year': 2020},
'Chad': {'key': 'Chad', 'pop': 16425859, 'year': 2020}, 'Chile': {'key': 'Chile', 'pop': 19116209, 'year': 2020},
'China': {'key': 'China', 'pop': 1439323774, 'year': 2020},
'Colombia': {'key': 'Colombia', 'pop': 50882884, 'year': 2020},
'Comoros': {'key': 'Comoros', 'pop': 869595, 'year': 2020},
'Congo': {'key': 'Congo', 'pop': 5518092, 'year': 2020},
'Costa Rica': {'key': 'Costa_Rica', 'pop': 5094114, 'year': 2020},
"Cote d'Ivoire": {'key': 'Cote_dIvoire', 'pop': 26378275, 'year': 2020},
'Croatia': {'key': 'Croatia', 'pop': 4105268, 'year': 2020},
'Cuba': {'key': 'Cuba', 'pop': 11326616, 'year': 2020}, 'Curacao': {'key': 'Curaçao', 'pop': 164100, 'year': 2020},
'Cyprus': {'key': 'Cyprus', 'pop': 875899, 'year': 2020},
'Czech Republic': {'key': 'Czechia', 'pop': 10708982, 'year': 2020},
'Democratic Republic of Congo': {'key': 'Democratic_Republic_of_the_Congo', 'pop': 89561404, 'year': 2020},
'Denmark': {'key': 'Denmark', 'pop': 5792203, 'year': 2020},
'Djibouti': {'key': 'Djibouti', 'pop': 988002, 'year': 2020},
'Dominica': {'key': 'Dominica', 'pop': 71991, 'year': 2020},
'Dominican Republic': {'key': 'Dominican_Republic', 'pop': 10847904, 'year': 2020},
'Ecuador': {'key': 'Ecuador', 'pop': 17643060, 'year': 2020},
'Egypt': {'key': 'Egypt', 'pop': 102334403, 'year': 2020},
'El Salvador': {'key': 'El_Salvador', 'pop': 6486201, 'year': 2020},
'Equatorial Guinea': {'key': 'Equatorial_Guinea', 'pop': 1402985, 'year': 2020},
'Eritrea': {'key': 'Eritrea', 'pop': 3546427, 'year': 2020},
'Estonia': {'key': 'Estonia', 'pop': 1326539, 'year': 2020},
'Swaziland': {'key': 'Eswatini', 'pop': 1160164, 'year': 2020},
'Ethiopia': {'key': 'Ethiopia', 'pop': 114963583, 'year': 2020},
'Falkland Islands': {'key': 'Falkland_Islands_(Malvinas)', 'pop': 3483, 'year': 2020},
'Faeroe Islands': {'key': 'Faroe_Islands', 'pop': 48865, 'year': 2020},
'Fiji': {'key': 'Fiji', 'pop': 896444, 'year': 2020}, 'Finland': {'key': 'Finland', 'pop': 5540718, 'year': 2020},
'France': {'key': 'France', 'pop': 65273512, 'year': 2020},
'French Polynesia': {'key': 'French_Polynesia', 'pop': 280904, 'year': 2020},
'Gabon': {'key': 'Gabon', 'pop': 2225728, 'year': 2020}, 'Gambia': {'key': 'Gambia', 'pop': 2416664, 'year': 2020},
'Georgia': {'key': 'Georgia', 'pop': 3989175, 'year': 2020},
'Germany': {'key': 'Germany', 'pop': 83783945, 'year': 2020},
'Ghana': {'key': 'Ghana', 'pop': 31072945, 'year': 2020},
'Gibraltar': {'key': 'Gibraltar', 'pop': 33691, 'year': 2020},
'Greece': {'key': 'Greece', 'pop': 10423056, 'year': 2020},
'Greenland': {'key': 'Greenland', 'pop': 56772, 'year': 2020},
'Grenada': {'key': 'Grenada', 'pop': 112519, 'year': 2020}, 'Guam': {'key': 'Guam', 'pop': 168783, 'year': 2020},
'Guatemala': {'key': 'Guatemala', 'pop': 17915567, 'year': 2020},
'Guernsey': {'key': 'Guernsey', 'pop': 67052, 'year': 2020},
'Guinea': {'key': 'Guinea', 'pop': 13132792, 'year': 2020},
'Guinea-Bissau': {'key': 'Guinea_Bissau', 'pop': 1967998, 'year': 2020},
'Guyana': {'key': 'Guyana', 'pop': 786559, 'year': 2020}, 'Haiti': {'key': 'Haiti', 'pop': 11402533, 'year': 2020},
'Vatican': {'key': 'Holy_See', 'pop': 809, 'year': 2020},
'Honduras': {'key': 'Honduras', 'pop': 9904608, 'year': 2020},
'Hungary': {'key': 'Hungary', 'pop': 9660350, 'year': 2020},
'Iceland': {'key': 'Iceland', 'pop': 341250, 'year': 2020},
'India': {'key': 'India', 'pop': 1380004385, 'year': 2020},
'Indonesia': {'key': 'Indonesia', 'pop': 273523621, 'year': 2020},
'Iran': {'key': 'Iran', 'pop': 83992953, 'year': 2020}, 'Iraq': {'key': 'Iraq', 'pop': 40222503, 'year': 2020},
'Ireland': {'key': 'Ireland', 'pop': 4937796, 'year': 2020},
'Isle of Man': {'key': 'Isle_of_Man', 'pop': 85032, 'year': 2020},
'Israel': {'key': 'Israel', 'pop': 8655541, 'year': 2020},
'Italy': {'key': 'Italy', 'pop': 60461828, 'year': 2020},
'Jamaica': {'key': 'Jamaica', 'pop': 2961161, 'year': 2020},
'Japan': {'key': 'Japan', 'pop': 126476458, 'year': 2020},
'Jersey': {'key': 'Jersey', 'pop': 101073, 'year': 2020},
'Jordan': {'key': 'Jordan', 'pop': 10203140, 'year': 2020},
'Kazakhstan': {'key': 'Kazakhstan', 'pop': 18776707, 'year': 2020},
'Kenya': {'key': 'Kenya', 'pop': 53771300, 'year': 2020},
'Kosovo': {'key': 'Kosovo', 'pop': 1932774, 'year': 2020},
'Kuwait': {'key': 'Kuwait', 'pop': 4270563, 'year': 2020},
'Kyrgyzstan': {'key': 'Kyrgyzstan', 'pop': 6524191, 'year': 2020},
'Laos': {'key': 'Laos', 'pop': 7275556, 'year': 2020}, 'Latvia': {'key': 'Latvia', 'pop': 1886202, 'year': 2020},
'Lebanon': {'key': 'Lebanon', 'pop': 6825442, 'year': 2020},
'Lesotho': {'key': 'Lesotho', 'pop': 2142252, 'year': 2020},
'Liberia': {'key': 'Liberia', 'pop': 5057677, 'year': 2020},
'Libya': {'key': 'Libya', 'pop': 6871287, 'year': 2020},
'Liechtenstein': {'key': 'Liechtenstein', 'pop': 38137, 'year': 2020},
'Lithuania': {'key': 'Lithuania', 'pop': 2722291, 'year': 2020},
'Luxembourg': {'key': 'Luxembourg', 'pop': 625976, 'year': 2020},
'Madagascar': {'key': 'Madagascar', 'pop': 27691019, 'year': 2020},
'Malawi': {'key': 'Malawi', 'pop': 19129955, 'year': 2020},
'Malaysia': {'key': 'Malaysia', 'pop': 32365998, 'year': 2020},
'Maldives': {'key': 'Maldives', 'pop': 540542, 'year': 2020},
'Mali': {'key': 'Mali', 'pop': 20250834, 'year': 2020}, 'Malta': {'key': 'Malta', 'pop': 441539, 'year': 2020},
'Mauritania': {'key': 'Mauritania', 'pop': 4649660, 'year': 2020},
'Mauritius': {'key': 'Mauritius', 'pop': 1271767, 'year': 2020},
'Mexico': {'key': 'Mexico', 'pop': 128932753, 'year': 2020},
'Moldova': {'key': 'Moldova', 'pop': 4033963, 'year': 2020},
'Monaco': {'key': 'Monaco', 'pop': 39244, 'year': 2020},
'Mongolia': {'key': 'Mongolia', 'pop': 3278292, 'year': 2020},
'Montenegro': {'key': 'Montenegro', 'pop': 628062, 'year': 2020},
'Montserrat': {'key': 'Montserrat', 'pop': 4999, 'year': 2020},
'Morocco': {'key': 'Morocco', 'pop': 36910558, 'year': 2020},
'Mozambique': {'key': 'Mozambique', 'pop': 31255435, 'year': 2020},
'Myanmar': {'key': 'Myanmar', 'pop': 54409794, 'year': 2020},
'Namibia': {'key': 'Namibia', 'pop': 2540916, 'year': 2020},
'Nepal': {'key': 'Nepal', 'pop': 29136808, 'year': 2020},
'Netherlands': {'key': 'Netherlands', 'pop': 17134873, 'year': 2020},
'New Caledonia': {'key': 'New_Caledonia', 'pop': 285491, 'year': 2020},
'New Zealand': {'key': 'New_Zealand', 'pop': 4822233, 'year': 2020},
'Nicaragua': {'key': 'Nicaragua', 'pop': 6624554, 'year': 2020},
'Niger': {'key': 'Niger', 'pop': 24206636, 'year': 2020},
'Nigeria': {'key': 'Nigeria', 'pop': 206139587, 'year': 2020},
'Macedonia': {'key': 'North_Macedonia', 'pop': 2083380, 'year': 2020},
'Northern Mariana Islands': {'key': 'Northern_Mariana_Islands', 'pop': 57557, 'year': 2020},
'Norway': {'key': 'Norway', 'pop': 5421242, 'year': 2020}, 'Oman': {'key': 'Oman', 'pop': 5106622, 'year': 2020},
'Pakistan': {'key': 'Pakistan', 'pop': 220892331, 'year': 2020},
'Palestine': {'key': 'Palestine', 'pop': 5101416, 'year': 2020},
'Panama': {'key': 'Panama', 'pop': 4314768, 'year': 2020},
'Papua New Guinea': {'key': 'Papua_New_Guinea', 'pop': 8947027, 'year': 2020},
'Paraguay': {'key': 'Paraguay', 'pop': 7132530, 'year': 2020},
'Peru': {'key': 'Peru', 'pop': 32971846, 'year': 2020},
'Philippines': {'key': 'Philippines', 'pop': 109581085, 'year': 2020},
'Poland': {'key': 'Poland', 'pop': 37846605, 'year': 2020},
'Portugal': {'key': 'Portugal', 'pop': 10196707, 'year': 2020},
'Puerto Rico': {'key': 'Puerto_Rico', 'pop': 2860840, 'year': 2020},
'Qatar': {'key': 'Qatar', 'pop': 2881060, 'year': 2020},
'Romania': {'key': 'Romania', 'pop': 19237682, 'year': 2020},
'Russia': {'key': 'Russia', 'pop': 145934460, 'year': 2020},
'Rwanda': {'key': 'Rwanda', 'pop': 12952209, 'year': 2020},
'Saint Kitts and Nevis': {'key': 'Saint_Kitts_and_Nevis', 'pop': 53192, 'year': 2020},
'Saint Lucia': {'key': 'Saint_Lucia', 'pop': 183629, 'year': 2020},
'Saint Vincent and the Grenadines': {'key': 'Saint_Vincent_and_the_Grenadines', 'pop': 110947, 'year': 2020},
'San Marino': {'key': 'San_Marino', 'pop': 33938, 'year': 2020},
'Sao Tome and Principe': {'key': 'Sao_Tome_and_Principe', 'pop': 219161, 'year': 2020},
'Saudi Arabia': {'key': 'Saudi_Arabia', 'pop': 34813867, 'year': 2020},
'Senegal': {'key': 'Senegal', 'pop': 16743930, 'year': 2020},
'Serbia': {'key': 'Serbia', 'pop': 6804596, 'year': 2020},
'Seychelles': {'key': 'Seychelles', 'pop': 98340, 'year': 2020},
'Sierra Leone': {'key': 'Sierra_Leone', 'pop': 7976985, 'year': 2020},
'Singapore': {'key': 'Singapore', 'pop': 5850343, 'year': 2020},
'Sint Maarten (Dutch part)': {'key': 'Sint_Maarten', 'pop': 42882, 'year': 2020},
'Slovakia': {'key': 'Slovakia', 'pop': 5459643, 'year': 2020},
'Slovenia': {'key': 'Slovenia', 'pop': 2078932, 'year': 2020},
'Somalia': {'key': 'Somalia', 'pop': 15893219, 'year': 2020},
'South Africa': {'key': 'South_Africa', 'pop': 59308690, 'year': 2020},
'South Korea': {'key': 'South_Korea', 'pop': 51269183, 'year': 2020},
'South Sudan': {'key': 'South_Sudan', 'pop': 11193729, 'year': 2020},
'Spain': {'key': 'Spain', 'pop': 46754783, 'year': 2020},
'Sri Lanka': {'key': 'Sri_Lanka', 'pop': 21413250, 'year': 2020},
'Sudan': {'key': 'Sudan', 'pop': 43849269, 'year': 2020},
'Suriname': {'key': 'Suriname', 'pop': 586634, 'year': 2020},
'Sweden': {'key': 'Sweden', 'pop': 10099270, 'year': 2020},
'Switzerland': {'key': 'Switzerland', 'pop': 8654618, 'year': 2020},
'Syria': {'key': 'Syria', 'pop': 17500657, 'year': 2020},
'Taiwan': {'key': 'Taiwan', 'pop': 23816775, 'year': 2020},
'Tajikistan': {'key': 'Tajikistan', 'pop': 9537642, 'year': 2020},
'Thailand': {'key': 'Thailand', 'pop': 69799978, 'year': 2020},
'Timor': {'key': 'Timor_Leste', 'pop': 1318442, 'year': 2020},
'Togo': {'key': 'Togo', 'pop': 8278737, 'year': 2020},
'Trinidad and Tobago': {'key': 'Trinidad_and_Tobago', 'pop': 1399491, 'year': 2020},
'Tunisia': {'key': 'Tunisia', 'pop': 11818618, 'year': 2020},
'Turkey': {'key': 'Turkey', 'pop': 84339067, 'year': 2020},
'Turks and Caicos Islands': {'key': 'Turks_and_Caicos_islands', 'pop': 38718, 'year': 2020},
'Uganda': {'key': 'Uganda', 'pop': 45741000, 'year': 2020},
'Ukraine': {'key': 'Ukraine', 'pop': 43733759, 'year': 2020},
'United Arab Emirates': {'key': 'United_Arab_Emirates', 'pop': 9890400, 'year': 2020},
'United Kingdom': {'key': 'United_Kingdom', 'pop': 67886004, 'year': 2020},
'Tanzania': {'key': 'United_Republic_of_Tanzania', 'pop': 59734213, 'year': 2020},
'United States Virgin Islands': {'key': 'United_States_Virgin_Islands', 'pop': 104423, 'year': 2020},
'United States': {'key': 'United_States_of_America', 'pop': 331002647, 'year': 2020},
'Uruguay': {'key': 'Uruguay', 'pop': 3473727, 'year': 2020},
'Uzbekistan': {'key': 'Uzbekistan', 'pop': 33469199, 'year': 2020},
'Venezuela': {'key': 'Venezuela', 'pop': 28435943, 'year': 2020},
'Vietnam': {'key': 'Vietnam', 'pop': 97338583, 'year': 2020},
'Western Sahara': {'key': 'Western_Sahara', 'pop': 597330, 'year': 2020},
'Yemen': {'key': 'Yemen', 'pop': 29825968, 'year': 2020},
'Zambia': {'key': 'Zambia', 'pop': 18383956, 'year': 2020},
'Zimbabwe': {'key': 'Zimbabwe', 'pop': 14862927, 'year': 2020},
'World': {'key': 'entered by hand', 'pop': 7713468000},
}