Skip to content

Commit

Permalink
improve data filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonerf committed Feb 11, 2025
1 parent 7f90aa7 commit 029ce40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etl/steps/data/garden/gavi/2025-02-11/eligibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def run(dest_dir: str) -> None:
tb = ds_meadow.read("eligibility")
tb_regions = ds_regions.read("regions")
# Not completely sure we should be listing _all_ other countries as not eligible, but Gavi only lists countries which are so we must assume a little
tb_regions = tb_regions[(tb_regions["region_type"] == "country") & (tb_regions["is_historical"] == False)]
tb_regions = tb_regions.query("region_type == 'country' and not is_historical")
assert len(tb["year"].unique()) == 1, "More than one year in the Gavi dataset"
tb_regions["year"] = tb["year"].unique()[0]
tb_all_countries = tb_regions[["name", "year"]]
Expand Down

0 comments on commit 029ce40

Please sign in to comment.