ndarray
ndarray.
choose
Use an index array to construct a new array from a set of choices.
Refer tonumpy.choose for full documentation.
numpy.choose
See also
numpy.ndarray.byteswap
numpy.ndarray.clip