summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorAndreas Hilboll <andreas@hilboll.de>2013-02-17 12:56:41 +0100
committerAndreas Hilboll <andreas@hilboll.de>2013-02-17 12:56:41 +0100
commitc5478ef2a402e21b5d9f9533fcb8e6f055b45a35 (patch)
tree4af0568aff239d9bd110216eb678bbfef7de0417 /numpy/lib/function_base.py
parent38a16488d0977c5617218a36759250df7f87556e (diff)
downloadnumpy-c5478ef2a402e21b5d9f9533fcb8e6f055b45a35.tar.gz
Update numpy/lib/function_base.py
fix percentile docstring
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.])