pyspark.sql.functions.
exp
Computes the exponential of the given value.
New in version 1.4.0.
Changed in version 3.4.0: Supports Spark Connect.
Column
column to calculate exponential for.
exponential of the given value.
Examples
>>> df = spark.range(1) >>> df.select(exp(lit(0))).show() +------+ |EXP(0)| +------+ | 1.0| +------+