summaryrefslogtreecommitdiff
path: root/numpy/add_newdocs.py
diff options
context:
space:
mode:
authorMilo <milo0@users.noreply.github.com>2018-01-05 23:43:26 +0100
committerEric Wieser <wieser.eric@gmail.com>2018-01-05 14:43:26 -0800
commit692a0aff0ac96129eac67d34247427e7212ef088 (patch)
treed62327e4528be005a45afe9a4488d7e8e67e8882 /numpy/add_newdocs.py
parenteb2cfc1d91d34b24eae0b8fff0b6cd3a8496a37b (diff)
downloadnumpy-692a0aff0ac96129eac67d34247427e7212ef088.tar.gz
DOC: Fix typos in partition method (#10334)
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r--numpy/add_newdocs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py
index 44f681ee5..8fc36dd9c 100644
--- a/numpy/add_newdocs.py
+++ b/numpy/add_newdocs.py
@@ -4522,7 +4522,7 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('partition',
"""
a.partition(kth, axis=-1, kind='introselect', order=None)
- Rearranges the elements in the array in such a way that value of the
+ Rearranges the elements in the array 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 the elements in
@@ -4536,7 +4536,7 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('partition',
Element index to partition by. The kth element value will be in its
final sorted position and all smaller elements will be moved before it
and all equal or greater elements behind it.
- The order all elements in the partitions is undefined.
+ The order of all elements in the partitions is undefined.
If provided with a sequence of kth it will partition all elements
indexed by kth of them into their sorted position at once.
axis : int, optional
@@ -4546,8 +4546,8 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('partition',
Selection algorithm. Default is 'introselect'.
order : str or list of str, optional
When `a` is an array with fields defined, this argument specifies
- which fields to compare first, second, etc. A single field can
- be specified as a string, and not all fields need be specified,
+ which fields to compare first, second, etc. A single field can
+ be specified as a string, and not all fields need to be specified,
but unspecified fields will still be used, in the order in which
they come up in the dtype, to break ties.