snowflake.snowpark.functions.cos¶
- snowflake.snowpark.functions.cos(e: ColumnOrName) Column [source]¶
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 | ------------