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

snowflake.snowpark.functions.bitnot

snowflake.snowpark.functions.bitnot(e: ColumnOrName) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/functions.py#L424-L433)

Returns the bitwise negation of a numeric expression.

Example

>>> df = session.create_dataframe([1], schema=["a"])
>>> df.select(bitnot("a")).collect()[0][0]
-2
Copy
语言: 中文