From f87a772ea67df2130077dcf056fd912ea2ea6019 Mon Sep 17 00:00:00 2001 From: Matthias Schmidtblaicher Date: Tue, 30 Jan 2024 18:07:44 +0100 Subject: [PATCH] simplify --- src/glum/_glm.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/glum/_glm.py b/src/glum/_glm.py index 0fda06e0..dbf19524 100644 --- a/src/glum/_glm.py +++ b/src/glum/_glm.py @@ -896,10 +896,7 @@ def _convert_from_pandas( ), getattr(self, "cat_missing_method", "fail"), ) - if ( - hasattr(self, "categorical_format") - and self.cat_missing_method == "convert" - ): + if getattr(self, "cat_missing_method", "fail"): df = _add_missing_categories( df=df, dtypes=self.feature_dtypes_,