[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets
Francis MB
report at bugs.python.org
Sun Feb 10 05:15:23 EST 2019
Francis MB <francismb at email.de> added the comment:
>> There may be better names for the flag. "tie_goes_to_first_encountered" seemed a bit long though ;-)
Could it may be an alternative to set the mode tie case in a form like:
def mode(seq, *, case=CHOOSE_FIRST):
[...]
(or TIE_CHOOSE_FIRST, ...) where CHOOSE_FIRST is an enum ?
Thanks!
----------
nosy: +francismb
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35892>
_______________________________________
More information about the Python-bugs-list
mailing list