Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.DatetimeIndex.std#

DatetimeIndex.std(*args,**kwargs)[source]#

Return sample standard deviation over requested axis.

Normalized byN-1 by default. This can be changed usingddof.

Parameters:
axisint, optional

Axis for the function to be applied on. Forpandas.Seriesthis parameter is unused and defaults toNone.

ddofint, default 1

Degrees of Freedom. The divisor used in calculations isN - ddof,whereN represents the number of elements.

skipnabool, default True

Exclude NA/null values. If an entire row/column isNA, the resultwill beNA.

Returns:
Timedelta

See also

numpy.ndarray.std

Returns the standard deviation of the array elements along given axis.

Series.std

Return sample standard deviation over requested axis.

Examples

Forpandas.DatetimeIndex:

>>>idx=pd.date_range('2001-01-01 00:00',periods=3)>>>idxDatetimeIndex(['2001-01-01', '2001-01-02', '2001-01-03'],              dtype='datetime64[ns]', freq='D')>>>idx.std()Timedelta('1 days 00:00:00')

[8]ページ先頭

©2009-2025 Movatter.jp