Re: [Python-ideas] Discuss: what should statistics.mode do?

2019-02-18 Thread Steve Barnes
-Original Message- From: Python-ideas On Behalf Of Steven D'Aprano Sent: 19 February 2019 00:16 To: python-ideas@python.org Subject: [Python-ideas] Discuss: what should statistics.mode do? See https://bugs.python.org/issue35892 The issue here is that statistics.mode, as initially

[Python-ideas] Discuss: what should statistics.mode do?

2019-02-18 Thread Steven D'Aprano
See https://bugs.python.org/issue35892 The issue here is that statistics.mode, as initially designed, raises an exception for the case of multiple equal most-frequent data points. This is true to the way mode is taught in schools, but it may not be the most useful behaviour. Raymond has