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

snowflake.snowpark.functions.sqrt

snowflake.snowpark.functions.sqrt(e: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L1704-L1716)

Returns the square-root of a non-negative numeric expression.

Example::
>>> df = session.create_dataframe(
...     [4, 9],
...     schema=["N"],
... ).select(sqrt(col("N")))
>>> df.collect()
[Row(SQRT("N")=2.0), Row(SQRT("N")=3.0)]
Copy
Language: English