Skip to content

Commit

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

0 comments on commit f87a772

Please sign in to comment.