Skip to content

Commit

Permalink
Update column.py
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar authored May 10, 2024
1 parent aeba17b commit a1d11a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/cudf/cudf/core/column/column.py
Original file line number Diff line number Diff line change
Expand Up @@ -1952,7 +1952,9 @@ def as_column(
cudf.get_option("mode.pandas_compatible")
and inferred_dtype == "boolean"
):
raise MixedTypeError(f"Cannot have mixed values with {inferred_dtype}")
raise MixedTypeError(
f"Cannot have mixed values with {inferred_dtype}"
)
elif nan_as_null is False and (
any(
(isinstance(x, (np.floating, float)) and np.isnan(x))
Expand Down

0 comments on commit a1d11a2

Please sign in to comment.