Answers for "get index of value in list if value meet condition python"

0

get index of value in list if value meet condition python

>>> import numpy as np
>>> a = np.array([1, 2, 3, 1, 2, 3])
>>> np.where(a > 2)[0]
[2 5]
Posted by: Guest on January-18-2022

Code answers related to "get index of value in list if value meet condition python"

Python Answers by Framework

Browse Popular Code Answers by Language