From: Tal Einat Date: Mon, 25 Jun 2018 11:04:01 +0000 (+0300) Subject: bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587) X-Git-Tag: v3.8.0a1~1495 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fdd6e0bf18517c3dc5e24c48fbfe890229fad1b5;p=thirdparty%2FPython%2Fcpython.git bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587) --- diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst index bc3817836b93..26bb592b2381 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`