From e4444e5a0c1f11a5a1aab18fcbdde3da059d7f4d Mon Sep 17 00:00:00 2001 From: Bas van Beek Date: Mon, 4 Oct 2021 15:37:56 +0200 Subject: DOC: Add `versionadded` directives for the argmin/-max `keepdims` parameter --- numpy/core/fromnumeric.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'numpy/core/fromnumeric.py') 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 -- cgit v1.2.1