polars.Series.mean#

Series.mean() int | float | None[source]#

Reduce this Series to the mean value.

Examples

>>> s = pl.Series("a", [1, 2, 3])
>>> s.mean()
2.0