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]¶

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       |
------------
Copy