summaryrefslogtreecommitdiffstats
path: root/Doc/library/statistics.rst
diff options
context:
space:
mode:
authorTal Einat <taleinat+github@gmail.com>2018-06-25 11:04:01 (GMT)
committerGitHub <noreply@github.com>2018-06-25 11:04:01 (GMT)
commitfdd6e0bf18517c3dc5e24c48fbfe890229fad1b5 (patch)
treef85bdeb9b98e3c4cdab1e3042e479104bd9fae29 /Doc/library/statistics.rst
parent4a6e746079441d18c30e3c4d014f106faaf7792f (diff)
downloadcpython-fdd6e0bf18517c3dc5e24c48fbfe890229fad1b5.zip
cpython-fdd6e0bf18517c3dc5e24c48fbfe890229fad1b5.tar.gz
cpython-fdd6e0bf18517c3dc5e24c48fbfe890229fad1b5.tar.bz2
bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587)
Diffstat (limited to 'Doc/library/statistics.rst')
-rw-r--r--Doc/library/statistics.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst
index bc38178..26bb592 100644
--- a/Doc/library/statistics.rst
+++ b/Doc/library/statistics.rst
@@ -169,6 +169,10 @@ However, for reading convenience, most of the examples show sorted sequences.
This is suited for when your data is discrete, and you don't mind that the
median may not be an actual data point.
+ If your data is ordinal (supports order operations) but not numeric (doesn't
+ support addition), you should use :func:`median_low` or :func:`median_high`
+ instead.
+
.. seealso:: :func:`median_low`, :func:`median_high`, :func:`median_grouped`