Skip to main content
Version: 1.0.0

Expr.log1p

def log1p() -> Expr

Categories: numeric

Calculate the natural logarithm plus one.

Examples

>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("val"), td.col("val").log1p().alias("log1p")
>>>
┌──────┬──────────┐
│ val ┆ log1p │
------
│ f64 ┆ f64 │
╞══════╪══════════╡
-1.0-inf │
0.00.0
1.10.741937
2.01.098612
│ inf ┆ inf │
│ null ┆ null │
│ NaN ┆ NaN │
└──────┴──────────┘