pyspark.sql.functions.
atan
Compute inverse tangent of the input column.
New in version 1.4.0.
Changed in version 3.4.0: Supports Spark Connect.
Column
target column to compute on.
inverse tangent of col, as if computed by java.lang.Math.atan()
Examples
>>> df = spark.range(1) >>> df.select(atan(df.id)).show() +--------+ |ATAN(id)| +--------+ | 0.0| +--------+