diff options
author | Jonas Liechti <jonas.i.liechti@protonmail.ch> | 2021-10-05 00:54:40 +0200 |
---|---|---|
committer | Jonas Liechti <jonas.i.liechti@protonmail.ch> | 2021-10-05 00:54:40 +0200 |
commit | f9e712d2b658b6e7b8eff7eeac062b08a726315d (patch) | |
tree | 62f5f295a6a921362c174f3cbd28843dcb1e4154 /numpy/lib/function_base.py | |
parent | dd3dff57b097c375858f84ebf57d75ec50150e55 (diff) | |
download | numpy-f9e712d2b658b6e7b8eff7eeac062b08a726315d.tar.gz |
type-o: used element instead of array
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 3c49c227a..2e77c11dc 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -660,11 +660,11 @@ def select(condlist, choicelist, default=0): >>> x = np.arange(6) >>> condlist = [x<3, x>3] >>> choicelist = [x, x**2] - >>> np.select(condlist, choicelist, 55) - array([ 0, 1, 2, 55, 16, 25]) + >>> np.select(condlist, choicelist, 42) + array([ 0, 1, 2, 42, 16, 25]) Note that, when multiple conditions are satisfied, the element is drawn - from the first element in `choicelist` with a matching condition: + from the first array in `choicelist` with a matching condition: >>> x = np.arange(6) >>> condlist = [x<=4, x>3] |