Skip to content

Commit

Permalink
Fix pandas FutureWarning (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbourjau committed Oct 16, 2023
1 parent 75cc52c commit e7ef80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glum/_glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2255,7 +2255,7 @@ def _set_up_and_check_fit_args(
_name_categorical_variables(
dtype.categories, column, self.drop_first
)
if pd.api.types.is_categorical_dtype(dtype)
if isinstance(dtype, pd.CategoricalDtype)
else [column]
for column, dtype in zip(X.columns, X.dtypes)
)
Expand Down

0 comments on commit e7ef80a

Please sign in to comment.