From 3e56fe7bad20397cd736e355bbd8b68a2d7c1261 Mon Sep 17 00:00:00 2001 From: Tal Einat Date: Sun, 10 Jun 2018 16:13:20 +0300 Subject: [PATCH] bpo-33573: docs to suggest median() alternatives for non-numeric data --- Doc/library/statistics.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst index bc3817836b9398..26bb592b23812b 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`