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

snowflake.snowpark.functions.radians¶

snowflake.snowpark.functions.radians(e: ColumnOrName) → Column[source]¶

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