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

snowflake.snowpark.functions.bitshiftright

snowflake.snowpark.functions.bitshiftright(to_shift_column: ColumnOrName, n: Column | int) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/functions.py#L448-L457)

Returns the bitwise negation of a numeric expression.

Example

>>> df = session.create_dataframe([2], schema=["a"])
>>> df.select(bitshiftright("a", 1)).collect()[0][0]
1
Copy
Language: English