summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-06-25 04:18:54 -0700
committerTal Einat <taleinat+github@gmail.com>2018-06-25 14:18:54 +0300
commit150cd3cb272021e9a2d865dd28486b00199fe77d (patch)
tree043022f1fa6f9c80a071f5ee8275bc71224294e9
parent80f1a908a87e55c318776fb8e6f8c21d8a8664ef (diff)
downloadcpython-git-150cd3cb272021e9a2d865dd28486b00199fe77d.tar.gz
[3.7] bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587) (GH-7906)
(cherry picked from commit fdd6e0bf18517c3dc5e24c48fbfe890229fad1b5)
-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 bc3817836b..26bb592b23 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`