snowflake.snowpark.functions.exp¶
- snowflake.snowpark.functions.exp(e: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.23.0/src/snowflake/snowpark/functions.py#L1899-L1912)¶
- 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)]