summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-08-12 09:58:02 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-08-12 09:58:02 -0700
commit505dc05eee8362db98919b8ecd485fb5d8100e42 (patch)
treea0eadcf1b346d2b9b9a5b5043da3fc5bb90df03c
parentf9f58e949a06dfe584c96236225e98acc72b53de (diff)
parent9e9bdc5b42b549af1955d1a5c9e59478b679e56f (diff)
downloadnumpy-505dc05eee8362db98919b8ecd485fb5d8100e42.tar.gz
Merge pull request #3607 from stefanv/select_doc_typos
DOC: Fix small typos in partition docstring.
-rw-r--r--numpy/core/fromnumeric.py4
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