polars math log1p for dataframe
Compute the element-wise natural log of 1 + x for a column expression.
Signature
> polars math log1p {flags}
Input/output types:
| input | output |
|---|---|
| polars_expression | polars_expression |
| polars_selector | polars_expression |
Examples
Compute the element-wise natural log of 1 + x for a column
> [[a]; [0] [1] [2]] |
polars into-df |
polars select (polars col a | polars math log1p) |
polars collect