From c5e9e140e57774262cf5ac4762d19a9da5c9477d Mon Sep 17 00:00:00 2001 From: xamm <39380924+xamm@users.noreply.github.com> Date: Fri, 16 Apr 2021 11:49:26 +0200 Subject: MAINT: change argument type in numpy.clip documentation example from keyword to positional as suggested by reviewer --- 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 c8ab0ae25..7c43cd313 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -2099,7 +2099,7 @@ def clip(a, a_min, a_max, out=None, **kwargs): array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) >>> np.clip(a, 1, 8) array([1, 1, 2, 3, 4, 5, 6, 7, 8, 8]) - >>> np.clip(a, a_max = 1, a_min = 8) + >>> np.clip(a, 8, 1) array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1]) >>> np.clip(a, 3, 6, out=a) array([3, 3, 3, 3, 4, 5, 6, 6, 6, 6]) -- cgit v1.2.1