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

snowflake.snowpark.functions.exp

snowflake.snowpark.functions.exp(e: Column | str) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.5.0/src/snowflake/snowpark/functions.py#L1634-L1647)

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
Language: English