Method: Polars::Expr#std

Defined in:
lib/polars/expr.rb

#std(ddof: 1) ⇒ Expr

Get standard deviation.

Examples:

df = Polars::DataFrame.new({"a" => [-1, 0, 1]})
df.select(Polars.col("a").std)
# =>
# shape: (1, 1)
# ┌─────┐
# │ a   │
# │ --- │
# │ f64 │
# ╞═════╡
# │ 1.0 │
# └─────┘

Parameters:

  • ddof (Integer) (defaults to: 1)

    Degrees of freedom.

Returns:


1958
1959
1960
# File 'lib/polars/expr.rb', line 1958

def std(ddof: 1)
  _from_rbexpr(_rbexpr.std(ddof))
end