summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-02-17 16:48:05 -0800
committerCharles Harris <charlesr.harris@gmail.com>2013-02-17 16:48:05 -0800
commitb2ed8f73901c7020e0551515d543b5138e11964a (patch)
tree4af0568aff239d9bd110216eb678bbfef7de0417 /numpy/lib/function_base.py
parent38a16488d0977c5617218a36759250df7f87556e (diff)
parentc5478ef2a402e21b5d9f9533fcb8e6f055b45a35 (diff)
downloadnumpy-b2ed8f73901c7020e0551515d543b5138e11964a.tar.gz
Merge pull request #2996 from andreas-h/patch-1
Update numpy/lib/function_base.py
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 320a8ec6c..02dd0ceaf 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -3053,7 +3053,7 @@ def percentile(a, q, axis=None, out=None, overwrite_input=False):
[ 3, 2, 1]])
>>> np.percentile(a, 50)
3.5
- >>> np.percentile(a, 0.5, axis=0)
+ >>> np.percentile(a, 50, axis=0)
array([ 6.5, 4.5, 2.5])
>>> np.percentile(a, 50, axis=1)
array([ 7., 2.])