]> granicus.if.org Git - python/commitdiff
[3.6] bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 25 Jun 2018 11:27:01 +0000 (04:27 -0700)
committerTal Einat <taleinat+github@gmail.com>
Mon, 25 Jun 2018 11:27:01 +0000 (14:27 +0300)
(cherry picked from commit fdd6e0bf18517c3dc5e24c48fbfe890229fad1b5)

Doc/library/statistics.rst

index 2aa778c4d06deb94d545ecdb6a4c3513256ad604..652e751366c546140e8cb00c0f6145b510615a71 100644 (file)
@@ -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`