From 692a0aff0ac96129eac67d34247427e7212ef088 Mon Sep 17 00:00:00 2001 From: Milo Date: Fri, 5 Jan 2018 23:43:26 +0100 Subject: DOC: Fix typos in partition method (#10334) --- numpy/add_newdocs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'numpy/add_newdocs.py') 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. -- cgit v1.2.1