From d88c23ab15c14d903f458a5f686fdb279f8d57da Mon Sep 17 00:00:00 2001 From: galipremsagar Date: Tue, 14 May 2024 15:58:28 +0000 Subject: [PATCH] Simplify --- python/cudf/cudf/core/column/column.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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}" )