diff --git a/python/cudf/cudf/utils/dtypes.py b/python/cudf/cudf/utils/dtypes.py index 67b54ef33f0..8af225ecb58 100644 --- a/python/cudf/cudf/utils/dtypes.py +++ b/python/cudf/cudf/utils/dtypes.py @@ -155,9 +155,13 @@ def is_numerical_dtype(obj): def is_string_dtype(obj): return ( - not is_decimal_dtype(obj) - and pd.api.types.is_string_dtype(obj) + pd.api.types.is_string_dtype(obj) + # Reject all cudf extension types. and not is_categorical_dtype(obj) + and not is_decimal_dtype(obj) + and not is_list_dtype(obj) + and not is_struct_dtype(obj) + and not is_interval_dtype(obj) )