pyspark.sql.functions.
sec
Computes secant of the input column.
New in version 3.3.0.
Changed in version 3.4.0: Supports Spark Connect.
Column
Angle in radians
Secant of the angle.
Examples
>>> df = spark.range(1) >>> df.select(sec(lit(1.5))).first() Row(SEC(1.5)=14.13683...)
previous
pyspark.sql.functions.bround
next
pyspark.sql.functions.shiftleft