From f295ad1d4cf17376e04d7300a19518c12da83ac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=B6rl?= Date: Tue, 22 Oct 2024 15:26:53 +0200 Subject: [PATCH] fix: error when using urban_type and egt 2010 --- 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())