Skip to content

Commit

Permalink
Update gender_statistics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
veronikasamborska1994 committed Nov 30, 2024
1 parent cec7fd9 commit 30f5e24
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions etl/steps/data/garden/wb/2024-06-10/gender_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 30f5e24

Please sign in to comment.