mirror of
https://github.com/python/cpython.git
synced 2026-04-26 13:50:54 +00:00
[3.6] bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587) (GH-7907)
(cherry picked from commit fdd6e0bf18)
This commit is contained in:
parent
ac5a6e35ef
commit
8fd8cfa369
1 changed files with 4 additions and 0 deletions
|
|
@ -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`
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue