Skip to content

Get standard deviation

Source code

Description

Get standard deviation

Usage

<Expr>$std(ddof = 1)

Arguments

ddof An integer representing "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

Expr

Examples

library("polars")

pl$select(pl$lit(1:5)$std())
#> shape: (1, 1)
#> ┌──────────┐
#> │          │
#> │ ---      │
#> │ f64      │
#> ╞══════════╡
#> │ 1.581139 │
#> └──────────┘