pyspark.sql.functions.cot

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

Computes cotangent of the input column.

New in version 3.3.0.

Parameters
colColumn or str

Angle in radians

Returns
Column

Cotangent of the angle.