pandas.DatetimeIndex.std

pandas 3.1.1 · Index objects · method

Measure spread as the square root of variance. Use ddof to choose the divisor convention.

Call syntax

DatetimeIndex.std(axis=None, dtype=None, out=None, ddof=1, keepdims=False, skipna=True)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
axis Optional
Positional or keyword
Default None
int

Choose which axis the operation acts on. The accepted axis labels depend on the receiver.

dtype Optional
Positional or keyword
Default None
None

Choose the data type for the input conversion or result.

out Optional
Positional or keyword
Default None
None
ddof Optional
Positional or keyword
Default 1
int

Set the degrees of freedom correction. The usual variance divisor is N minus ddof.

keepdims Optional
Positional or keyword
Default False
bool
skipna Optional
Positional or keyword
Default True
bool

Choose whether to exclude missing values during the calculation.

Returns

Timedelta