Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasSchmidtblaicherQC committed Jan 30, 2024
1 parent f8532b6 commit d0c9863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/glum/_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit d0c9863

Please sign in to comment.