Where can I find the source code behind the percentile
function in numpy
? I want to inspect it. I have searched Google but haven't come up with anything yet.
Percentiles are used in statistics to give you a number that describes the value that a given percent of the values are lower than.
To find it on your own system, try inspect
:
import inspect
from numpy import percentile
inspect.getfile(percentile)
The source code of numpy
is in Github and the percentile function can be found on line 3076 in lib/function_base.py
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With