diff options
author | ADARSH SINGH <adarshsng090@gmail.com> | 2022-05-26 09:17:24 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 20:47:24 -0700 |
commit | 49f278f7c993985ab47ba1ad85cb9c69e8f2bdcc (patch) | |
tree | 7d08d0c406c3799bc8173f33d458ff2ab0b18ce2 /numpy/core/fromnumeric.py | |
parent | 42aa4465a728a9466c106258aa083a44fbd06a6c (diff) | |
download | numpy-49f278f7c993985ab47ba1ad85cb9c69e8f2bdcc.tar.gz |
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 <sebastian@sipsolutions.net>
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |