turicreate.SArray.cumulative_std¶
-
SArray.
cumulative_std
()¶ Return the cumulative standard deviation of the elements in the SArray.
Returns an SArray where each element in the output corresponds to the standard deviation of all the elements preceding and including it. The SArray is expected to be of numeric type, or a numeric vector type.
Returns: - out : SArray[int, float]
Notes
- Missing values are ignored while performing the cumulative aggregate operation.
Examples
>>> sa = SArray([1, 2, 3, 4, 0]) >>> sa.cumulative_std() dtype: float rows: 3 [0.0, 0.5, 0.816496580927726, 1.118033988749895, 1.4142135623730951]