snowflake.snowpark.functions.exp¶
- snowflake.snowpark.functions.exp(e: ColumnOrName) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/functions.py#L1280-L1293)¶
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)]