From bb155f78540662e796c6da44fbd8ef984a70643c Mon Sep 17 00:00:00 2001 From: Matthias Schmidtblaicher Date: Tue, 30 Jan 2024 18:17:18 +0100 Subject: [PATCH] simplify --- src/glum/_glm.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/glum/_glm.py b/src/glum/_glm.py index 24648337..e5f0fcde 100644 --- a/src/glum/_glm.py +++ b/src/glum/_glm.py @@ -889,11 +889,7 @@ def _convert_from_pandas( df = _align_df_categories( df, self.feature_dtypes_, - getattr( - self, - "has_missing_category_", - {f: False for f in self.feature_dtypes_.keys()}, - ), + getattr(self, "has_missing_category_", {}), getattr(self, "cat_missing_method", "fail"), ) if getattr(self, "cat_missing_method", "fail") == "convert":