From 8504c0355c2fc09984ddd4be187ff2740066fe96 Mon Sep 17 00:00:00 2001 From: Matthias Schmidtblaicher Date: Tue, 30 Jan 2024 18:08:54 +0100 Subject: [PATCH] convert --- src/glum/_glm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glum/_glm.py b/src/glum/_glm.py index dbf19524..e3629569 100644 --- a/src/glum/_glm.py +++ b/src/glum/_glm.py @@ -896,7 +896,7 @@ def _convert_from_pandas( ), getattr(self, "cat_missing_method", "fail"), ) - if getattr(self, "cat_missing_method", "fail"): + if getattr(self, "cat_missing_method", "fail") == "convert": df = _add_missing_categories( df=df, dtypes=self.feature_dtypes_,