diff options
author | xamm <39380924+xamm@users.noreply.github.com> | 2021-04-16 11:49:26 +0200 |
---|---|---|
committer | xamm <39380924+xamm@users.noreply.github.com> | 2021-04-16 11:49:26 +0200 |
commit | c5e9e140e57774262cf5ac4762d19a9da5c9477d (patch) | |
tree | f767371123efd2bd1e1cde9feb79c9f652cec5cd /numpy/core/fromnumeric.py | |
parent | 71115524c292a7f4ac7e5a8e6b89e8cf41d1ab72 (diff) | |
download | numpy-c5e9e140e57774262cf5ac4762d19a9da5c9477d.tar.gz |
MAINT: change argument type in numpy.clip documentation example
from keyword to positional as suggested by reviewer
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 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]) |