pyspark.sql.functions.atan#

pyspark.sql.functions.atan(col)[source]#

Compute inverse tangent of the input column.

New in version 1.4.0.

Changed in version 3.4.0: Supports Spark Connect.

Parameters
colColumn or str

target column to compute on.

Returns
Column

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|
+--------+