We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0205340 commit d6153f0Copy full SHA for d6153f0
category_encoders/utils.py
@@ -18,7 +18,7 @@ def convert_cols_to_list(cols):
18
return list(cols)
19
elif isinstance(cols, tuple):
20
21
- elif pd.api.types.is_categorical(cols):
+ elif pd.api.types.is_categorical_dtype(cols):
22
return cols.astype(object).tolist()
23
24
return cols
0 commit comments