Answers for "np where [1]"

0

np where and

In [1]: my_array = arange(10)

In [2]: where((my_array > 3) & (my_array < 7))
Out[2]: (array([4, 5, 6]),)
Posted by: Guest on June-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language