snowflake.snowpark.functions.cos¶
- snowflake.snowpark.functions.cos(e: Union[Column, str]) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/functions.py#L2147-L2163)¶
Computes the cosine of its argument; the argument should be expressed in radians.
Example
>>> from math import pi >>> df = session.create_dataframe([[pi]], schema=["deg"]) >>> df.select(cos(col("deg")).alias("result")).show() ------------ |"RESULT" | ------------ |-1.0 | ------------