pandas.DatetimeIndex.mean

DatetimeIndex.mean(self, *args, **kwargs)[source]

Return the mean value of the Array.

New in version 0.25.0.

Parameters:
skipna : bool, default True

Whether to ignore any NaT elements

Returns:
scalar (Timestamp or Timedelta)

See also

numpy.ndarray.mean
Series.mean
Return the mean value in a Series.

Notes

mean is only defined for Datetime and Timedelta dtypes, not for Period.

Scroll To Top