[issue33573] statistics.median does not work with ordinal scale

Steven D'Aprano report at bugs.python.org
Sat May 19 11:10:19 EDT 2018


Steven D'Aprano <steve+python at pearwood.info> added the comment:

What do you think of adding a note in the documentation for median?

"If your data is ordinal (supports order operations) but not numeric (doesn't support addition), you should use ``median_low`` or ``median_high`` instead."

----------

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


More information about the Python-bugs-list mailing list