pyspark.sql.functions.cos

pyspark.sql.functions.cos(col: ColumnOrName) → pyspark.sql.column.Column[source]

Computes cosine of the input column.

New in version 1.4.0.

Parameters
colColumn or str

angle in radians

Returns
Column

cosine of the angle, as if computed by java.lang.Math.cos().