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

snowflake.snowpark.functions.pow

snowflake.snowpark.functions.pow(left: Union[Column, str, int, float], right: Union[Column, str, int, float]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L2452-L2474)

Returns a number (left) raised to the specified power (right).

Example::
>>> df = session.create_dataframe([[2, 3], [3, 4]], schema=["x", "y"])
>>> df.select(pow(col("x"), col("y")).alias("result")).show()
------------
|"RESULT"  |
------------
|8.0       |
|81.0      |
------------
Copy
Language: English