diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-04-20 12:31:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-20 12:31:31 -0600 |
commit | 67b9a768a7e6f373bbba02df302622773559ca4b (patch) | |
tree | fa52e4c8346e5232b76013fe0f69a8a3dd973ff9 /numpy/lib/nanfunctions.py | |
parent | de62ef91ff92a5118cee9c1aa236eb672cc96c84 (diff) | |
parent | 953fbda6c22af1ea0269ed533265268b805e324c (diff) | |
download | numpy-67b9a768a7e6f373bbba02df302622773559ca4b.tar.gz |
Merge pull request #10921 from mattip/percentile-graph
DOC: clear up warnings, fix matplotlib plot
Diffstat (limited to 'numpy/lib/nanfunctions.py')
-rw-r--r-- | numpy/lib/nanfunctions.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/numpy/lib/nanfunctions.py b/numpy/lib/nanfunctions.py index 16e363d7c..dddc0e5b8 100644 --- a/numpy/lib/nanfunctions.py +++ b/numpy/lib/nanfunctions.py @@ -1059,13 +1059,14 @@ def nanpercentile(a, q, axis=None, out=None, overwrite_input=False, This optional parameter specifies the interpolation method to use when the desired quantile lies between two data points ``i < j``: - * linear: ``i + (j - i) * fraction``, where ``fraction`` - is the fractional part of the index surrounded by ``i`` - and ``j``. - * lower: ``i``. - * higher: ``j``. - * nearest: ``i`` or ``j``, whichever is nearest. - * midpoint: ``(i + j) / 2``. + + * 'linear': ``i + (j - i) * fraction``, where ``fraction`` + is the fractional part of the index surrounded by ``i`` + and ``j``. + * 'lower': ``i``. + * 'higher': ``j``. + * 'nearest': ``i`` or ``j``, whichever is nearest. + * 'midpoint': ``(i + j) / 2``. keepdims : bool, optional If this is set to True, the axes which are reduced are left in the result as dimensions with size one. With this option, the |