We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47a2fba commit a0f8169Copy full SHA for a0f8169
app/utils/population/countrypopulation.py
@@ -39,7 +39,7 @@ def get_population_dict():
39
# verify that country is in database
40
if country_in_database(row[0]):
41
42
- # Populate dict with last non-None value
+ # Populate dict with last non-None value (https://stackoverflow.com/a/18533669)
43
key = country_code(row[0], verbose=False)
44
popluation_dict.update({key: int(next((el for el in row[::-1] if el), None))})
45
0 commit comments