You are viewing documentation about an older version (1.12.1). View latest version

snowflake.snowpark.functions.exp

snowflake.snowpark.functions.exp(e: Union[Column, str]) Column[source]

Computes Euler’s number e raised to a floating-point value.

Example:

>>> import math
>>> from snowflake.snowpark.types import IntegerType
>>> df = session.create_dataframe([0.0, math.log(10)], schema=["a"])
>>> df.select(exp(df["a"]).cast(IntegerType()).alias("exp")).collect()
[Row(EXP=1), Row(EXP=10)]
Copy