<div dir="ltr"><div class="markdown-here-wrapper" style="font-size:1em;font-family:Helvetica,arial,freesans,clean,sans-serif;color:rgb(34,34,34);background-color:rgb(255,255,255);border:none;line-height:1.2"><p style="margin:1em 0px">Let’s try and keep this on topic - most replies to this message has been about #9211, which is an orthogonal issue.</p>
<p style="margin:1em 0px">There are two main questions here:</p>
<ol style="padding-left:2em;margin:1em 0px">
<li style="margin:1em 0px">Would the community prefer to use <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">np.quantile(x, 0.25)</code> instead of <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:nowrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">np.percentile(x, 25)</code>, if they had the choice</li>
<li style="margin:1em 0px">Is this desirable enough to justify increasing the API surface?</li>
</ol>
<p style="margin:1em 0px">The general consensus on the github issue answers yes to 1, but is neutral on 2. It would be good to get more opinions.</p>
<p style="margin:1em 0px">Eric</p>
<p style="margin:1em 0px">On Fri, 21 Jul 2017 at 16:12 Chun-Wei Yuan <a href="http://mailto:chunwei.yuan@gmail.com" style="color:rgb(51,51,238);text-decoration:none">chunwei.yuan@gmail.com</a> wrote:</p>
<p style="margin:1em 0px"></p><div class="markdown-here-exclude"><p></p><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There's an ongoing effort to introduce quantile() into numpy.  You'd use it just like percentile(), but would input your q value in probability space (0.5 for 50%):<div><br></div><div><a href="https://github.com/numpy/numpy/pull/9213" target="_blank">https://github.com/numpy/numpy/pull/9213</a><br></div><div><br></div><div>Since there's a great deal of overlap between these two functions, we'd like to solicit opinions on how to move forward on this.</div><div><br></div><div>The current thinking is to tolerate the redundancy and keep both, using one as the engine for the other.  I'm partial to having quantile because 1.) I prefer probability space, and 2.) I have a PR waiting on quantile().</div><div><br></div><div>Best,</div><div><br></div><div>C</div></div>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@python.org" target="_blank">NumPy-Discussion@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote><p></p></div><p style="margin:1em 0px"></p>
<div title="MDH:TGV0J3MgdHJ5IGFuZCBrZWVwIHRoaXMgb24gdG9waWMgLSBldmVyeSByZXBseSB0byB0aGlzIHBv
c3QgaGFzIGJlZW4gYWJvdXQgIzkyMTEsIHdoaWNoIHdhcyBub3QgdGhlIG9yaWdpbmFsIGludGVu
dC48ZGl2Pjxicj48L2Rpdj48ZGl2PlRoZXJlIGFyZSB0d28gbWFpbiBxdWVzdGlvbnMgaGVyZTo8
L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2PjEuIFdvdWxkIHRoZSBjb21tdW5pdHkgcHJlZmVyIHRv
IHVzZSBgbnAucXVhbnRpbGUoeCwgMC4yNSlgIGluc3RlYWQgb2YgYG5wLnBlcmNlbnRpbGUoeCwg
MjUpYCwgaWYgdGhleSBoYWQgdGhlIGNob2ljZTxicj4yLiBJcyB0aGlzIGRlc2lyYWJsZSBlbm91
Z2ggdG8ganVzdGlmeSBpbmNyZWFzaW5nIHRoZSBBUEkgc3VyZmFjZT88L2Rpdj48ZGl2Pjxicj48
L2Rpdj48ZGl2PlRoZSBnZW5lcmFsIGNvbnNlbnN1cyBvbiB0aGUgZ2l0aHViIGlzc3VlIGFuc3dl
cnMgeWVzIHRvIDEsIGJ1dCBpcyBuZXV0cmFsIG9uIDIuIEl0IHdvdWxkIGJlIGdvb2QgdG8gZ2V0
IG1vcmUgb3BpbmlvbnMuPC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj5FcmljPC9kaXY+PGRpdj48
YnI+PC9kaXY+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3JnL21haWxtYW4v
bGlzdGluZm8vbnVtcHktZGlzY3Vzc2lvbiZhbXA7c291cmNlPWdtYWlsJmFtcDt1c3Q9MTUwMjQ4
Mjg4Njc5NDAwMCZhbXA7dXNnPUFGUWpDTkdod2RvbjVXOGdLMHdNVWh4SFBsS3hIdThLeXciPmh0
dHBzOi8vbWFpbC5weXRob24ub3JnL21haWxtYTx3YnI+bi9saXN0aW5mby9udW1weS1kaXNjdXNz
aW9uPC9hPjxicj4KPC9ibG9ja3F1b3RlPjwvZGl2PjwvZGl2Pg==" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div></div></div>