I have been going through several solutions, but I am not able to find a solution I need.
I have two numpy arrays. Let\'s take a small example<
numpy
You can use built-in sets:
final_x = set(x) - set(y)
and subtract the second from the first. You can convert final_x to a list or numpy.array if you feel so inclined.
final_x
list
numpy.array