pandas.TimedeltaIndex.mean

pandas 3.1.1 · Index objects · method

Calculate the arithmetic mean of values in the selection, group or window.

Call syntax

TimedeltaIndex.mean(*, skipna=True, axis=0)

Run the example

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

Parameters

ParameterRequirementAccepted values and behavior
skipna Optional
Keyword only
Default True
bool

Choose whether to exclude missing values during the calculation.

axis Optional
Keyword only
Default 0
int

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

Returns

scalar