Skip to content

Commit

Permalink
📊 women's rights: wb gender stats - fix Slovakia's value (#3665)
Browse files Browse the repository at this point in the history
  • Loading branch information
veronikasamborska1994 authored Dec 1, 2024
1 parent 39fed23 commit 4adfa00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions etl/steps/data/garden/wb/2024-06-10/gender_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ def run(dest_dir: str) -> None:
countries_file=paths.country_mapping_path,
)
# Pivot the dataframe so that each indicator is a separate column
tb = tb.pivot(index=["country", "year"], columns="wb_seriescode", values="value")
tb = tb.reset_index()
tb = tb.pivot(index=["country", "year"], columns="wb_seriescode", values="value").reset_index()

# Slovakia - should be the same as Czechoslovakia in the period 1970-1993 for the indicator SG.LAW.EQRM.WK as confirmed by the source (but not yet updated on their database)
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 4adfa00

Please sign in to comment.