Skip to content

Compute the variance of a Series

Source code

Description

Compute the variance of a Series

Usage

<Series>$var(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 numeric value

Examples

library("polars")

as_polars_series(1:10)$var()
#> [1] 9.166667