Skip to content

Commit

Permalink
Merge pull request #1381 from owid/add-food-affordability-data
Browse files Browse the repository at this point in the history
Add food affordability data
  • Loading branch information
pabloarosado authored Jul 26, 2023
2 parents cbb5d1e + 4e32135 commit b71be83
Show file tree
Hide file tree
Showing 12 changed files with 800 additions and 2 deletions.
9 changes: 9 additions & 0 deletions dag/agriculture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,12 @@ steps:
#
data://explorers/agriculture/2023-06-12/crop_yields:
- data://grapher/agriculture/2023-06-12/attainable_yields
#
# Food prices for nutrition - World Bank based on FAO.
#
data://meadow/wb/2023-07-24/food_prices_for_nutrition:
- snapshot://wb/2023-07-24/food_prices_for_nutrition.csv
data://garden/wb/2023-07-24/food_prices_for_nutrition:
- data://meadow/wb/2023-07-24/food_prices_for_nutrition
data://grapher/wb/2023-07-24/food_prices_for_nutrition:
- data://garden/wb/2023-07-24/food_prices_for_nutrition
2 changes: 2 additions & 0 deletions etl/harmonize.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ def __init__(self) -> None:
if code in aliases_s.index:
for alias in aliases_s.loc[[code]]:
aliases[alias.lower()] = name
# Include the region code itself as another alias.
aliases[code.lower()] = name

self.aliases = aliases
self.valid_names = valid_names
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
{
"ABW": "Aruba",
"AGO": "Angola",
"AIA": "Anguilla",
"ALB": "Albania",
"ARE": "United Arab Emirates",
"ARG": "Argentina",
"ARM": "Armenia",
"ATG": "Antigua and Barbuda",
"AUS": "Australia",
"AUT": "Austria",
"AZE": "Azerbaijan",
"BDI": "Burundi",
"BEL": "Belgium",
"BEN": "Benin",
"BFA": "Burkina Faso",
"BGD": "Bangladesh",
"BGR": "Bulgaria",
"BHR": "Bahrain",
"BHS": "Bahamas",
"BIH": "Bosnia and Herzegovina",
"BLR": "Belarus",
"BLZ": "Belize",
"BMU": "Bermuda",
"BOL": "Bolivia",
"BRA": "Brazil",
"BRB": "Barbados",
"BRN": "Brunei",
"BTN": "Bhutan",
"BWA": "Botswana",
"CAF": "Central African Republic",
"CAN": "Canada",
"CHE": "Switzerland",
"CHL": "Chile",
"CHN": "China",
"CIV": "Cote d'Ivoire",
"CMR": "Cameroon",
"COD": "Democratic Republic of Congo",
"COG": "Congo",
"COL": "Colombia",
"COM": "Comoros",
"CPV": "Cape Verde",
"CRI": "Costa Rica",
"CUW": "Curacao",
"CYM": "Cayman Islands",
"CYP": "Cyprus",
"CZE": "Czechia",
"DEU": "Germany",
"DJI": "Djibouti",
"DMA": "Dominica",
"DNK": "Denmark",
"DOM": "Dominican Republic",
"DZA": "Algeria",
"ECU": "Ecuador",
"EGY": "Egypt",
"ESP": "Spain",
"EST": "Estonia",
"ETH": "Ethiopia",
"FIN": "Finland",
"FJI": "Fiji",
"FRA": "France",
"GAB": "Gabon",
"GBR": "United Kingdom",
"GHA": "Ghana",
"GIN": "Guinea",
"GMB": "Gambia",
"GNB": "Guinea-Bissau",
"GNQ": "Equatorial Guinea",
"GRC": "Greece",
"GRD": "Grenada",
"GUY": "Guyana",
"HKG": "Hong Kong",
"HND": "Honduras",
"HRV": "Croatia",
"HTI": "Haiti",
"HUN": "Hungary",
"IDN": "Indonesia",
"IND": "India",
"IRL": "Ireland",
"IRN": "Iran",
"IRQ": "Iraq",
"ISL": "Iceland",
"ISR": "Israel",
"ITA": "Italy",
"JAM": "Jamaica",
"JOR": "Jordan",
"JPN": "Japan",
"KAZ": "Kazakhstan",
"KEN": "Kenya",
"KGZ": "Kyrgyzstan",
"KHM": "Cambodia",
"KNA": "Saint Kitts and Nevis",
"KOR": "South Korea",
"KWT": "Kuwait",
"LAO": "Laos",
"LBR": "Liberia",
"LCA": "Saint Lucia",
"LKA": "Sri Lanka",
"LSO": "Lesotho",
"LTU": "Lithuania",
"LUX": "Luxembourg",
"LVA": "Latvia",
"MAR": "Morocco",
"MDA": "Moldova",
"MDG": "Madagascar",
"MDV": "Maldives",
"MEX": "Mexico",
"MKD": "North Macedonia",
"MLI": "Mali",
"MLT": "Malta",
"MMR": "Myanmar",
"MNE": "Montenegro",
"MNG": "Mongolia",
"MOZ": "Mozambique",
"MRT": "Mauritania",
"MSR": "Montserrat",
"MUS": "Mauritius",
"MWI": "Malawi",
"MYS": "Malaysia",
"NAM": "Namibia",
"NER": "Niger",
"NGA": "Nigeria",
"NIC": "Nicaragua",
"NLD": "Netherlands",
"NOR": "Norway",
"NPL": "Nepal",
"NZL": "New Zealand",
"OMN": "Oman",
"PAK": "Pakistan",
"PAN": "Panama",
"PER": "Peru",
"PHL": "Philippines",
"POL": "Poland",
"PRT": "Portugal",
"PRY": "Paraguay",
"PSE": "Palestine",
"QAT": "Qatar",
"ROU": "Romania",
"RUS": "Russia",
"RWA": "Rwanda",
"SAU": "Saudi Arabia",
"SDN": "Sudan",
"SEN": "Senegal",
"SGP": "Singapore",
"SLE": "Sierra Leone",
"SLV": "El Salvador",
"SRB": "Serbia",
"STP": "Sao Tome and Principe",
"SUR": "Suriname",
"SVK": "Slovakia",
"SVN": "Slovenia",
"SWE": "Sweden",
"SWZ": "Eswatini",
"SXM": "Sint Maarten (Dutch part)",
"SYC": "Seychelles",
"TCA": "Turks and Caicos Islands",
"TCD": "Chad",
"TGO": "Togo",
"THA": "Thailand",
"TJK": "Tajikistan",
"TTO": "Trinidad and Tobago",
"TUN": "Tunisia",
"TUR": "Turkey",
"TWN": "Taiwan",
"TZA": "Tanzania",
"UGA": "Uganda",
"URY": "Uruguay",
"USA": "United States",
"VCT": "Saint Vincent and the Grenadines",
"VGB": "British Virgin Islands",
"VNM": "Vietnam",
"ZAF": "South Africa",
"ZMB": "Zambia",
"ZWE": "Zimbabwe",
"BON": "Bonaire",
"EAS": "East Asia & Pacific (WB)",
"ECS": "Europe & Central Asia (WB)",
"HIC": "High-income countries",
"LCN": "Latin America & Caribbean (WB)",
"LIC": "Low-income countries",
"LMC": "Lower-middle-income countries",
"MEA": "Middle East & North Africa (WB)",
"NAC": "North America (WB)",
"SAS": "South Asia (WB)",
"SSF": "Sub-Saharan Africa (WB)",
"UMC": "Upper-middle-income countries",
"WLD": "World"
}
Loading

0 comments on commit b71be83

Please sign in to comment.