I know how to replace all elements of numpy array that are greater than some values,
like array[array > 0] = 0, but I don't really know how to replace all elements that are equal to some values without using for loop, like below can achieve what I want but is there any way not to use the for loop?
Sorry for being unclear, some_values here is a list, like [7, 8, 9]
for v in some_values:
array[array == v] = 0