polars.Series.median#

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

Get the median of this Series.

Examples

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