NDVar.std(axis=None, ddof=0, **regions)

Compute the standard deviation over given dimensions

  • axis (Union[None, str, Sequence[str], NDVar]) – Dimensions over which to operate. A str is used to specify a single dimension, a tuple of str to specify several dimensions, None to compute the standard deviation over all values. An boolean NDVar with the same dimensions as the data can be used to compute the standard deviation in specific elements (if the data has a case dimension, the standard deviation is computed for each case).

  • ddof (float) – Means Delta Degrees of Freedom (see numpy.std()).

  • **regions – Regions over which to aggregate. For example, to get the STD between time=0.1 and time=0.2, use ndvar.std(time=(0.1, 0.2)).

  • name (str) – Name of the output NDVar (default is the current name).


The standard deviation over specified dimensions. Return a Var if only the case dimension remains, and a float if the function collapses over all data.

Return type