Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
This issue (as originally proposed) should be closed. A key function for median() and mode() likely isn't a good idea. Those two functions should be kept parallel with mean() as returning simple descriptive statistics. Work towards a select() function with a key function can be pursued in a separate tracker item. That would suffice to locate a specific record occurring at a median (or quartile or decile). FWIW, that is how MS Excel approaches the problem as well (using RANK with INDEX to locate a record by its sort position, leaving AVERAGE, MODE.SNGL, and MEDIAN for straight descriptive statistics). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue30999> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com