diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-06-25 11:27:01 (GMT) |
---|---|---|
committer | Tal Einat <taleinat+github@gmail.com> | 2018-06-25 11:27:01 (GMT) |
commit | 8fd8cfa369fe4b6d6ac430cd28ead32717df7bee (patch) | |
tree | ce55ef6eefc8436ee9924d6693e4882d3c6aca3b | |
parent | ac5a6e35ef4a73846136804fff924760ec67ebbd (diff) | |
download | cpython-8fd8cfa369fe4b6d6ac430cd28ead32717df7bee.zip cpython-8fd8cfa369fe4b6d6ac430cd28ead32717df7bee.tar.gz cpython-8fd8cfa369fe4b6d6ac430cd28ead32717df7bee.tar.bz2 |
[3.6] bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587) (GH-7907)
(cherry picked from commit fdd6e0bf18517c3dc5e24c48fbfe890229fad1b5)
-rw-r--r-- | Doc/library/statistics.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst index 2aa778c..652e751 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` |