Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

np.where

np.where([[True, False], [True, True]],
...          [[1, 2], [3, 4]],
...          [[9, 8], [7, 6]])
array([[1, 8],
       [3, 4]])
Source by numpy.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+2 =