Skip to content

Commit d6153f0

Browse files
authored
is_categorical deprecated (#266)
pandas-dev/pandas#33385
1 parent 0205340 commit d6153f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

category_encoders/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def convert_cols_to_list(cols):
1818
return list(cols)
1919
elif isinstance(cols, tuple):
2020
return list(cols)
21-
elif pd.api.types.is_categorical(cols):
21+
elif pd.api.types.is_categorical_dtype(cols):
2222
return cols.astype(object).tolist()
2323

2424
return cols

0 commit comments

Comments
 (0)