From 49f278f7c993985ab47ba1ad85cb9c69e8f2bdcc Mon Sep 17 00:00:00 2001 From: ADARSH SINGH Date: Thu, 26 May 2022 09:17:24 +0530 Subject: DOC: Fix axis naming in `argpartition` docs (#21098) * Update fromnumeric.py Fixing DOC: typo on website for numpy.argpartition #21093 * Update fromnumeric.py Fixing Typo Co-authored-by: Sebastian Berg --- numpy/core/fromnumeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/fromnumeric.py') diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 9e58d9bea..6e0da47ca 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -804,7 +804,7 @@ 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)`` + More generally, ``np.take_along_axis(a, index_array, axis=axis)`` always yields the partitioned `a`, irrespective of dimensionality. See Also -- cgit v1.2.1