Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.core.window.rolling.Rolling.sem#

Rolling.sem(ddof=1,numeric_only=False)[source]#

Calculate the rolling standard error of mean.

Parameters:
ddofint, default 1

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

numeric_onlybool, default False

Include only float, int, boolean columns.

Added in version 1.5.0.

Returns:
Series or DataFrame

Return type is the same as the original object withnp.float64 dtype.

See also

pandas.Series.rolling

Calling rolling with Series data.

pandas.DataFrame.rolling

Calling rolling with DataFrames.

pandas.Series.sem

Aggregating sem for Series.

pandas.DataFrame.sem

Aggregating sem for DataFrame.

Notes

A minimum of one period is required for the calculation.

Examples

>>>s=pd.Series([0,1,2,3])>>>s.rolling(2,min_periods=1).sem()0         NaN1    0.7071072    0.7071073    0.707107dtype: float64

[8]ページ先頭

©2009-2025 Movatter.jp