summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas van Beek <b.f.van.beek@vu.nl>2021-10-04 15:37:56 +0200
committerBas van Beek <43369155+BvB93@users.noreply.github.com>2021-10-04 19:04:23 +0200
commite4444e5a0c1f11a5a1aab18fcbdde3da059d7f4d (patch)
treeb1c8c02fca3fa6b2c4f927e9f58c0bb9d4280513
parent418e18a3474ac5bb94f2f6d898f58484b8834b5d (diff)
downloadnumpy-e4444e5a0c1f11a5a1aab18fcbdde3da059d7f4d.tar.gz
DOC: Add `versionadded` directives for the argmin/-max `keepdims` parameter
-rw-r--r--numpy/core/fromnumeric.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index 29d215ea0..3242124ac 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -1144,6 +1144,8 @@ def argmax(a, axis=None, out=None, *, keepdims=np._NoValue):
in the result as dimensions with size one. With this option,
the result will broadcast correctly against the array.
+ .. versionadded:: 1.22.0
+
Returns
-------
index_array : ndarray of ints
@@ -1238,6 +1240,8 @@ def argmin(a, axis=None, out=None, *, keepdims=np._NoValue):
in the result as dimensions with size one. With this option,
the result will broadcast correctly against the array.
+ .. versionadded:: 1.22.0
+
Returns
-------
index_array : ndarray of ints