You are here : python_3statisticsstatisticsmedian_grouped

statistics.median_grouped() - statistics

Return the median of grouped continuous data, calculated as the 50th
percentile, using interpolation.  If data is empty, StatisticsError
is raised.


Syntax

statistics.median_grouped(data, interval=1)


Example

>>> median_grouped([52, 52, 53, 54])
52.5


Output / Return Value


Limitations


Alternatives / See Also


Reference