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

snowflake.snowpark.functions.pow

snowflake.snowpark.functions.pow(left: ColumnOrName | int | float, right: ColumnOrName | int | float) Column[source]

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