[issue35698] [statistics] Division by 2 in statistics.median

Raymond Hettinger report at bugs.python.org
Sat Jan 12 23:12:59 EST 2019


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> As a pure mathematician, to me 1.0 means a number that is 
> close to 1. Whereas 1 means a number that is exactly 1.

Descriptive statistics performed on a computer using actual measurements is pretty far from "pure mathematics" ;-)

Making this change is likely pointless for most users and likely confusing for others (i.e. why the type switch between median([1, 1]) and median([1, 3]).

I concur with Victor and recommend closing.

----------
assignee:  -> steven.daprano
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35698>
_______________________________________


More information about the Python-bugs-list mailing list