You are viewing documentation about an older version (1.13.0). View latest version

snowflake.snowpark.functions.not_¶

snowflake.snowpark.functions.not_(e: Union[Column, str]) → Column[source]¶

Returns the inverse of a boolean expression.

Example:

>>> df = session.create_dataframe([[True]], schema=["a"])
>>> df.select(not_(col("a").alias("result"))).show()
------------
|"RESULT"  |
------------
|False     |
------------
Copy