Skip to content

Commit

Permalink
Merge pull request #33 from statisticsnorway/fix-country-code
Browse files Browse the repository at this point in the history
Fixed wrong country code for unknown
  • Loading branch information
martinskj authored Mar 8, 2024
2 parents 77dcf07 + 758434d commit e89bf53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ssb-arbmark-fagfunksjoner"
version = "0.0.11"
version = "0.0.12"
description = "SSB Arbeidsmarked og lønn Fag-fellesfunksjoner"
authors = ["Jan Sebastian Rothe <[email protected]>"]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions src/arbmark/groups/country_origin.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ def landbakgrunn_grp(landbakgrunn: PdSeriesStr, display: str = "label") -> NpArr
default_code = "Ukjent"
elif display == "number":
results = [str(key) for key in groups.keys()]
default_code = "999"
default_code = "990"
elif display == "arblonn":
results = [str(i) for i in arblonn_groups]
default_code = "980-990"
else:
results = [f"{key} {value}" for key, value in groups.items()]
default_code = "999 Ukjent"
default_code = "990 Ukjent"
grouped = np.select(conditions, results, default=default_code)
return grouped

0 comments on commit e89bf53

Please sign in to comment.