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

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      |
------------
Copy