From 95a7bb4746197a05fd23dbe39c7b3dbb105a18d9 Mon Sep 17 00:00:00 2001 From: Diwakar Gupta <39624018+Diwakar-Gupta@users.noreply.github.com> Date: Wed, 16 Mar 2022 23:36:45 +0530 Subject: DOC: typo corrected in numpy.argpartition (#21201) * DOC: numpy.argpartition typo corrected Co-authored-by: Matti Picus --- 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 6e6b6730c..9e58d9bea 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -804,8 +804,8 @@ def argpartition(a, kth, axis=-1, kind='introselect', order=None): index_array : ndarray, int Array of indices that partition `a` along the specified axis. If `a` is one-dimensional, ``a[index_array]`` yields a partitioned `a`. - More generally, ``np.take_along_axis(a, index_array, axis=a)`` always - yields the partitioned `a`, irrespective of dimensionality. + More generally, ``np.take_along_axis(a, index_array, axis)`` + always yields the partitioned `a`, irrespective of dimensionality. See Also -------- -- cgit v1.2.1