[issue33084] statistics module: NaN handling in median, median_high an median_low

Irit Katriel report at bugs.python.org
Fri Aug 20 09:16:23 EDT 2021


Irit Katriel <iritkatriel at gmail.com> added the comment:

Reproduced in 3.11:

>>> import numpy as np
>>> import statistics as stats
>>> data = [75, 90,85, 92, 95, 80, np.nan]
>>> stats.median(data)
90
>>> stats.median_low(data)
90
>>> stats.median_high(data)
90

----------
nosy: +iritkatriel
title: Computing median, median_high an median_low in statistics library -> statistics module: NaN handling in median, median_high an median_low
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33084>
_______________________________________


More information about the Python-bugs-list mailing list