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 04314cd commit bb155f7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/glum/_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,11 +889,7 @@ def _convert_from_pandas(
df = _align_df_categories(
df,
self.feature_dtypes_,
getattr(
self,
"has_missing_category_",
{f: False for f in self.feature_dtypes_.keys()},
),
getattr(self, "has_missing_category_", {}),
getattr(self, "cat_missing_method", "fail"),
)
if getattr(self, "cat_missing_method", "fail") == "convert":
Expand Down

0 comments on commit bb155f7

Please sign in to comment.