[issue33573] statistics.median does not work with ordinal scale, add doc

2018-06-25 Thread Tal Einat
Change by Tal Einat : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33573] statistics.median does not work with ordinal scale, add doc

2018-06-25 Thread Tal Einat
Tal Einat added the comment: New changeset 8fd8cfa369fe4b6d6ac430cd28ead32717df7bee by Tal Einat (Miss Islington (bot)) in branch '3.6': [3.6] bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587) (GH-7907)

[issue33573] statistics.median does not work with ordinal scale, add doc

2018-06-25 Thread Tal Einat
Tal Einat added the comment: New changeset 150cd3cb272021e9a2d865dd28486b00199fe77d by Tal Einat (Miss Islington (bot)) in branch '3.7': [3.7] bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587) (GH-7906)

[issue33573] statistics.median does not work with ordinal scale, add doc

2018-06-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +7513 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33573] statistics.median does not work with ordinal scale, add doc

2018-06-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +7512 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33573] statistics.median does not work with ordinal scale, add doc

2018-06-25 Thread Tal Einat
Tal Einat added the comment: New changeset fdd6e0bf18517c3dc5e24c48fbfe890229fad1b5 by Tal Einat in branch 'master': bpo-33573: docs to suggest median() alternatives for non-numeric data (GH-7587) https://github.com/python/cpython/commit/fdd6e0bf18517c3dc5e24c48fbfe890229fad1b5 --

[issue33573] statistics.median does not work with ordinal scale, add doc

2018-06-10 Thread Tal Einat
Tal Einat added the comment: PR ready for review. -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33573] statistics.median does not work with ordinal scale, add doc

2018-06-10 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +7209 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue33573] statistics.median does not work with ordinal scale, add doc

2018-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. -- assignee: -> docs@python components: +Documentation nosy: +docs@python, terry.reedy resolution: not a bug -> stage: -> needs patch title: statistics.median does not work with ordinal scale -> statistics.median does not

[issue33573] statistics.median does not work with ordinal scale

2018-05-21 Thread W deW
W deW added the comment: Changing the documentation in tis way seems to me an excellent and easy way to solve the issue. -- ___ Python tracker

[issue33573] statistics.median does not work with ordinal scale

2018-05-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: What do you think of adding a note in the documentation for median? "If your data is ordinal (supports order operations) but not numeric (doesn't support addition), you should use ``median_low`` or ``median_high`` instead."

[issue33573] statistics.median does not work with ordinal scale

2018-05-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: By the way, this isn't a crash (that's for things which cause the interpreter to segfault). I'm marking this as Not a bug, but I'm open to suggestions to improve either the documentation or the median functions. --

[issue33573] statistics.median does not work with ordinal scale

2018-05-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: For ordinal scales, you should use either median_low or median_high. I don't think the standard median function ought to choose for you whether to take the low or high median. It is better to be explicit about which you want, by

[issue33573] statistics.median does not work with ordinal scale

2018-05-18 Thread W deW
New submission from W deW : The 0.5-quantile or median is defined for ordinal, interval, and ratio scales. An Enumerator as derived from Enum and extended with rich comparison methods implements an ordinal scale. Therefore calculating the median over a list of such