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

snowflake.snowpark.functions.log1p

snowflake.snowpark.functions.log1p(x: Union[Column, str, int, float]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.30.0/snowpark-python/src/snowflake/snowpark/functions.py#L3101-L3122)

Returns the natural logarithm of (1 + x).

Example:

>>> df = session.create_dataframe([0, 1], schema=["a"])
>>> df.select(log1p(df["a"]).alias("log1p")).collect()
[Row(LOG1P=0.0), Row(LOG1P=0.6931471805599453)]
Copy
Language: English