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

snowflake.snowpark.functions.not_

snowflake.snowpark.functions.not_(e: Column | str) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.5.0/src/snowflake/snowpark/functions.py#L1291-L1307)

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
语言: 中文