pandas.Series.sem

pandas 3.1.1 · Series and accessors · method

Calculate the standard error of the mean for the selected data.

Call syntax

Series.sem(*, axis=None, skipna=True, ddof=1, numeric_only=False, **kwargs)

Run the example

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

Parameters

ParameterRequirementAccepted values and behavior
axis Optional
Keyword only
Default None
{index (0)}

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

skipna Optional
Keyword only
Default True
bool

Choose whether to exclude missing values during the calculation.

ddof Optional
Keyword only
Default 1
int

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

numeric_only Optional
Keyword only
Default False
bool

Restrict the calculation to columns pandas considers numeric where applicable.

**kwargs Optional
Additional keyword arguments

Returns

scalar