GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bpo-33573: docs to suggest median() alternatives for non-numeric data… · python/cpython@fdd6e0b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Doc/library
    • statistics.rst
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Doc/library/statistics.rst‎

Copy file name to clipboardExpand all lines: Doc/library/statistics.rst
+4Lines changed: 4 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.