From 7f73d120f862276153c152cddf6bcf162399ceb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=B6rl?= Date: Tue, 22 Oct 2024 15:54:08 +0200 Subject: [PATCH] fix: error when using urban_type and egt 2010 (#267) --- data/hts/egt/cleaned.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/hts/egt/cleaned.py b/data/hts/egt/cleaned.py index 197da72b..490320c9 100644 --- a/data/hts/egt/cleaned.py +++ b/data/hts/egt/cleaned.py @@ -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())