Skip to content

Compute the exponential

Description

Compute the exponential

Usage

<Expr>$exp()

Value

A polars expression

Examples

library("polars")

pl$DataFrame(a = c(1, 2, 4))$
  with_columns(exp = pl$col("a")$exp())
#> shape: (3, 2)
#> ┌─────┬──────────┐
#> │ a   ┆ exp      │
#> │ --- ┆ ---      │
#> │ f64 ┆ f64      │
#> ╞═════╪══════════╡
#> │ 1.0 ┆ 2.718282 │
#> │ 2.0 ┆ 7.389056 │
#> │ 4.0 ┆ 54.59815 │
#> └─────┴──────────┘