polars.Series.mean#

Series.mean() PythonLiteral | None[source]#

Reduce this Series to the mean value.

Examples

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