snowflake.snowpark.functions.bitshiftleft

snowflake.snowpark.functions.bitshiftleft(to_shift_column: Union[Column, str], n: Union[Column, int]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/functions.py#L624-L636)

Returns the bitwise negation of a numeric expression.

Example

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