Skip to content

Compute the standard deviation

Description

Compute the standard deviation

Usage

<Expr>$std(ddof = 1)

Arguments

ddof "Delta Degrees of Freedom": the divisor used in the calculation is N - ddof, where N represents the number of elements. By default ddof is 1.

Value

A polars expression

Examples

library("polars")

pl$DataFrame(a = c(1, 3, 5, 6))$
  select(pl$all()$std())
#> shape: (1, 1)
#> ┌──────────┐
#> │ a        │
#> │ ---      │
#> │ f64      │
#> ╞══════════╡
#> │ 2.217356 │
#> └──────────┘