From c5478ef2a402e21b5d9f9533fcb8e6f055b45a35 Mon Sep 17 00:00:00 2001 From: Andreas Hilboll Date: Sun, 17 Feb 2013 12:56:41 +0100 Subject: Update numpy/lib/function_base.py fix percentile docstring --- numpy/lib/function_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/function_base.py') 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.]) -- cgit v1.2.1