|
|
|
@@ -2064,8 +2064,7 @@ def select(condlist, choicelist, default=0): |
|
|
|
ValueError: if ``len(condlist) != len(choicelist)``. |
|
|
|
|
|
|
|
Examples: |
|
|
|
>>> condlist = [[True, True, True, False, False], |
|
|
|
[False, False, True, False, True]] |
|
|
|
>>> condlist = [[True, True, True, False, False], [False, False, True, False, True]] |
|
|
|
>>> choicelist = [[0, 1, 2, 3, 4], [0, 1, 4, 9, 16]] |
|
|
|
>>> output = np.select(condlist, choicelist) |
|
|
|
>>> print(output) |
|
|
|
|