diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2013-08-12 18:19:41 +0200 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2013-08-12 18:19:41 +0200 |
commit | 9e9bdc5b42b549af1955d1a5c9e59478b679e56f (patch) | |
tree | 01aed1f0e1a3f88ad4839fee1e9161127450c130 /numpy/core/fromnumeric.py | |
parent | f8efcb6f191621e7c59f5385c85aeaa83be3669d (diff) | |
download | numpy-9e9bdc5b42b549af1955d1a5c9e59478b679e56f.tar.gz |
DOC: Fix small typos in partition docstring.
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |