snowflake.snowpark.functions.boolnot¶

snowflake.snowpark.functions.boolnot(e: Union[snowflake.snowpark.column.Column, str]) → Column[source]¶
Computes the Boolean NOT of a single numeric expression. In accordance with Boolean semantics:
  • Non-zero values (including negative numbers) are regarded as True.

  • Zero values are regarded as False.

Parameters:

e (ColumnOrName) – A numeric expression to be evaluated.

Returns:

  • True if the expression is zero.

  • False if the expression is non-zero.

  • NULL if the expression is NULL.

Example:

>>> df = session.create_dataframe([0, 10, -5], schema=["a"])
>>> df.select(boolnot("a")).collect()
[Row(BOOLNOT("A")=True), Row(BOOLNOT("A")=False), Row(BOOLNOT("A")=False)]
Copy