Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

np where and

In [1]: my_array = arange(10)

In [2]: where((my_array > 3) & (my_array < 7))
Out[2]: (array([4, 5, 6]),)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #np
ADD COMMENT
Topic
Name
8+2 =