Skip to content

Commit

Permalink
fix: error when using urban_type and egt 2010 (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhoerl authored Oct 22, 2024
1 parent f08437f commit 7f73d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/hts/egt/cleaned.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def execute(context):
]]

# Household municipality
df_households["commune_id"] = df_households["RESCOMM"].astype("category")
df_households["commune_id"] = df_households["RESCOMM"].astype(str)
df_persons = pd.merge(df_persons, df_households[["household_id", "commune_id"]], how = "left")
assert np.all(~df_persons["commune_id"].isna())

Expand Down

0 comments on commit 7f73d12

Please sign in to comment.