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

snowflake.snowpark.functions.radians

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

Converts degrees to radians.

Examples:

>>> df = session.create_dataframe([[1.111], [2.222], [3.333]], schema=["a"])
>>> df.select(radians(col("a")).cast("number(38, 5)").alias("result")).show()
------------
|"RESULT"  |
------------
|0.01939   |
|0.03878   |
|0.05817   |
------------
Copy
Language: English