From d0c9863fbeb4d7544076ec309d066a7f06476eb5 Mon Sep 17 00:00:00 2001 From: Matthias Schmidtblaicher Date: Tue, 30 Jan 2024 18:34:55 +0100 Subject: [PATCH] cosmetics --- src/glum/_glm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glum/_glm.py b/src/glum/_glm.py index eea1c477..af586245 100644 --- a/src/glum/_glm.py +++ b/src/glum/_glm.py @@ -906,7 +906,7 @@ def _convert_from_pandas( X = tm.from_pandas( df, drop_first=self.drop_first, - categorical_format=getattr( # categorical format prior to v3 + categorical_format=getattr( # convention prior to v3 self, "categorical_format", "{name}__{category}" ), cat_missing_method=cat_missing_method_after_alignment, @@ -2787,7 +2787,7 @@ def _expand_categorical_penalties( X = tm.from_pandas( X, drop_first=self.drop_first, - categorical_format=getattr( + categorical_format=getattr( # convention prior to v3 self, "categorical_format", "{name}__{category}" ), cat_missing_method=getattr(self, "cat_missing_method", "fail"),