<div dir="ltr">Hello everyone,<div><br></div><div>Sorry if this subject has already been covered in the mailing list but I could not find it.</div><div><br></div><div>My question is very simple: should the `quantile` function be added to python `statistics` module.</div><div><br></div><div>I was very happy to learn the existence of this module in python3 only to later be forced to install numpy to compute a .7 quantile which is even more frustrating since the module actually provides an implementation of the median.</div><div><br></div><div>I would therefore be willing to submit a PR to add the `quantile` function to the module.</div><div><br></div><div>The function would have the following signature:</div><div><br></div><div>```</div><div># data -> your sequence</div><div># p -> the quantile, between 0 & 1</div><div>def quantile(data, p)</div><div><br></div><div># example</div><div>quantile([1, 2, 3, 4, 5], 0.5)</div><div>>>> 3</div><div>```</div><div><br></div><div>This would also mean implementing very simply the `quantile_low` & `quantile_high` function as their median counterparts in the module.</div><div><br></div><div>I am unclear, however, how to implement a hypothetic `quantile_grouped`.</div><div><br></div><div>What do you think?</div></div>