diff --git a/etl/steps/data/garden/wb/2024-06-10/gender_statistics.py b/etl/steps/data/garden/wb/2024-06-10/gender_statistics.py index 0463d034c31..61f6f85c018 100644 --- a/etl/steps/data/garden/wb/2024-06-10/gender_statistics.py +++ b/etl/steps/data/garden/wb/2024-06-10/gender_statistics.py @@ -73,9 +73,8 @@ def run(dest_dir: str) -> None: # Pivot the dataframe so that each indicator is a separate column tb = tb.pivot(index=["country", "year"], columns="wb_seriescode", values="value").reset_index() - # Filter for Slovakia and the specific year range, then update the value as it was not correctly recorded (the source will change it in their next update) - tb.loc[(tb["country"] == "Slovakia") & (tb["year"].between(1971, 1993)), "SG.LAW.EQRM.WK"] = 1 - + # Apply the update + tb.loc[(tb["country"] == "Slovakia") & (tb["year"].between(1970, 1993)), "SG.LAW.EQRM.WK"] = 1 # Add metadata by finding the descriptions and sources using indicator codes tb = add_metadata(tb, metadata_tb)