snowflake.snowpark.functions.cos¶
- snowflake.snowpark.functions.cos(e: Union[Column, str]) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L1827-L1842)¶
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 | ------------