snowflake.snowpark.functions.not_

snowflake.snowpark.functions.not_(e: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L1497-L1513)

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