daft.functions.stddev#
stddev #
stddev(expr: Expression, ddof: int = 1) -> Expression
Calculates the standard deviation of the values in the expression.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
expr | Expression | The input expression to calculate standard deviation for. | required |
ddof | int | Delta degrees of freedom. The divisor used in calculations is N - ddof, where N is the number of non-null elements. Defaults to 1 (sample standard deviation). | 1 |
Returns:
| Type | Description |
|---|---|
Expression | Expression representing the standard deviation. |
Source code in daft/functions/agg.py
168 169 170 171 172 173 174 175 176 177 178 179 180 | |