I am using np.where function to get indices where the value matches 0. But the following code returns me empty array, which is not expected.
import numpy as np
a = np.array([0,0,0,0])
np.where(a[a>=0])
This gives: (array([], dtype=int64),).
Could anyone please point out what I am missing?
https://numpy.org/doc/stable/reference/generated/numpy.where.html