Skip to content

Commit 8fd8cfa

Browse files
miss-islingtontaleinat
authored andcommitted
[3.6] bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587) (GH-7907)
(cherry picked from commit fdd6e0b)
1 parent ac5a6e3 commit 8fd8cfa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/statistics.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ However, for reading convenience, most of the examples show sorted sequences.
169169
This is suited for when your data is discrete, and you don't mind that the
170170
median may not be an actual data point.
171171

172+
If your data is ordinal (supports order operations) but not numeric (doesn't
173+
support addition), you should use :func:`median_low` or :func:`median_high`
174+
instead.
175+
172176
.. seealso:: :func:`median_low`, :func:`median_high`, :func:`median_grouped`
173177

174178

0 commit comments

Comments
 (0)