pandas.Index.std#

Index.std(
*,
axis=None,
dtype=None,
out=<no_default>,
keepdims=False,
ddof=1,
skipna=True,
)[source]#

Return the sample standard deviation of the values in the Index.

Normalized by N-1 by default. This can be changed using ddof.

Parameters:
axis{None, 0}

Unused. Parameter needed for compatibility with numpy.

dtype, outNone

Not implemented; kept for compatibility with numpy.std(), which calls this method. Must be left at the default.

keepdimsbool, default False

Not implemented; must be left at the default.

ddofint, default 1

Delta Degrees of Freedom. The divisor used in calculations is N - ddof, where N represents the number of elements.

skipnabool, default True

Exclude NA/null values when computing the result.

Returns:
scalar

The standard deviation of the values.

See also

Index.var

Return the variance of the values.

Series.std

Return the standard deviation of the values of a Series.

Examples

>>> pd.Index([1, 2, 3]).std()
1.0