Skip to content

Commit

Permalink
Merge pull request #2614 from owid/regions-correct-comment
Browse files Browse the repository at this point in the history
💬 correct comment
  • Loading branch information
marcelgerber authored May 6, 2024
2 parents 998810f + aa3f149 commit 2311ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etl/steps/data/external/owid_grapher/latest/regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def run(dest_dir: str) -> None:
# Create a map: Region name -> Region code
regions_by_name = regions.reset_index().set_index("name")["code"]

# Keep only the most recent classification for each country.
# Add entity codes to countries in tb_income_groups.
tb_income_groups["code"] = tb_income_groups["country"].map(regions_by_name.to_dict())

# Check that all countries in the WB dataset have a code.
Expand Down

0 comments on commit 2311ba4

Please sign in to comment.