Aggregate the columns in the LazyFrame to their variance value
Description
Aggregate the columns in the LazyFrame to their variance value
Usage
<LazyFrame>$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 polars LazyFrame
Examples
#> shape: (1, 2)
#> ┌──────────┬──────┐
#> │ a ┆ b │
#> │ --- ┆ --- │
#> │ f64 ┆ f64 │
#> ╞══════════╪══════╡
#> │ 1.666667 ┆ 0.25 │
#> └──────────┴──────┘
#> shape: (1, 2)
#> ┌──────┬────────┐
#> │ a ┆ b │
#> │ --- ┆ --- │
#> │ f64 ┆ f64 │
#> ╞══════╪════════╡
#> │ 1.25 ┆ 0.1875 │
#> └──────┴────────┘