diff --git a/python/cudf/cudf/core/column/column.py b/python/cudf/cudf/core/column/column.py index 965e73cfce6..b30453515e7 100644 --- a/python/cudf/cudf/core/column/column.py +++ b/python/cudf/cudf/core/column/column.py @@ -1950,13 +1950,11 @@ def as_column( ) elif inferred_dtype == "boolean": if cudf.get_option("mode.pandas_compatible"): - if ( + if not ( dtype is not None and dtype == np.dtype("bool") and not pd.isna(arbitrary).any() ): - pass - else: raise MixedTypeError( f"Cannot have mixed values with {inferred_dtype}" )