Statistics Functions

statistics.median_high()

Find the middle sorted value, choosing the upper middle observation when the length is even. It returns an actual data item.

Formal Syntax & Structure

python syntaxpython
statistics.median_high(data)

Parameters & Attributes

NameTypeDescription
dataiterable of numbersObservations used by the statistic.

Return Value

object

A selected data item.

Working Example

Example Snippetpython
import statisticsprint(statistics.median_high([7, 1, 3, 9]))
Python Reference