polars.Series.median#

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

Get the median of this Series.

Examples

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