polars.Expr.erf#

Expr.erf() → Expr[source]#

Compute the error function, element-wise.

See Wikipedia.

engine:In MemoryStreamingDistributed

Examples

>>> df = pl.DataFrame({"a": [-1, 0, 1]})
>>> df.select(pl.col("a").erf())
shape: (3, 1)
┌───────────┐
│ a         │
│ ---       │
│ f64       │
╞═══════════╡
│ -0.842701 │
│ 0.0       │
│ 0.842701  │
└───────────┘