On this page
statistics.median_high
Prev: statistics.median_grouped | Up: statistics | Next: statistics.median_low
Rel: statistics.correlation, statistics.covariance, statistics.fmean, statistics.geometric_mean
Ref: docs.python.org — statistics.median_high
Tags: #public #python3 #stdlib #statistics
Import
import statistics
from statistics import median_high
Signature & Overview
statistics.median_high(data)
Return the high median of data.
Usage
import statistics
assert statistics.median_high(['a', 'b', 'c', 'd']) == 'c'
Gotchas
- Works on non-numeric sortable items (strings, dates) by picking the larger middle element.
REPL Inspect
from statistics import median_high
help(median_high)
Linked from
Related notes
- tuts/python3/stdlib_module/statistics/median_grouped Linked here; links to this page; shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/median_low Linked here; links to this page; shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/statistics/correlation Linked here; shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/covariance Linked here; shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/fmean Linked here; shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/geometric_mean Linked here; shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/harmonic_mean shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/kde shared tags: #statistics, #stdlib
- tuts/python3/stdlib_module/statistics/kde_random shared tags: #statistics, #stdlib