daft.DataFrame.stddev#
- DataFrame.stddev(*cols: Union[Expression, str]) DataFrame [source]#
Performs a global standard deviation on the DataFrame
Example
>>> import daft >>> df = daft.from_pydict({"col_a":[0,1,2]}) >>> df = df.stddev("col_a") >>> df.show() ╭───────────────────╮ │ col_a │ │ --- │ │ Float64 │ ╞═══════════════════╡ │ 0.816496580927726 │ ╰───────────────────╯ (Showing first 1 of 1 rows)
- Parameters:
*cols (Union[str, Expression]) – columns to stddev
- Returns:
Globally aggregated standard deviation. Should be a single row.
- Return type: