pyspark.sql.functions.sec

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

Computes secant of the input column.

New in version 3.3.0.

Parameters
colColumn or str

Angle in radians

Returns
Column

Secant of the angle.