From 9e9bdc5b42b549af1955d1a5c9e59478b679e56f Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Mon, 12 Aug 2013 18:19:41 +0200 Subject: DOC: Fix small typos in partition docstring. --- numpy/core/fromnumeric.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/core/fromnumeric.py') diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 87fb5d818..0dacd4bca 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -539,7 +539,7 @@ def partition(a, kth, axis=-1, kind='introselect', order=None): """ Return a partitioned copy of an array. - Creates a copy of the array with its elements rearranges in such a way that + Creates a copy of the array with its elements rearranged in such a way that the value of the element in kth position is in the position it would be in a sorted array. All elements smaller than the kth element are moved before this element and all equal or greater are moved behind it. The ordering of @@ -653,7 +653,7 @@ def argpartition(a, kth, axis=-1, kind='introselect', order=None): Returns ------- index_array : ndarray, int - Array of indices that partition`a` along the specified axis. + Array of indices that partition `a` along the specified axis. In other words, ``a[index_array]`` yields a sorted `a`. See Also -- cgit v1.2.1