snowflake.snowpark.functions.ln¶
- snowflake.snowpark.functions.ln(c: Union[Column, None, bool, int, float, str, bytearray, Decimal, date, datetime, time, bytes, NaTType, float64, list, tuple, dict]) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.22.1/src/snowflake/snowpark/functions.py#L5984-L6000)¶
Returns the natrual logarithm of given column expression.
- Example::
>>> from snowflake.snowpark.functions import ln >>> from math import e >>> df = session.create_dataframe([[e]], schema=["ln_value"]) >>> df.select(ln(col("ln_value")).alias("result")).show() ------------ |"RESULT" | ------------ |1.0 | ------------