I have an array of four rows A = array([[-1, -1, -1, -1], [-1, -1, 1, 2], [-1, -1, 1, 1], [2, 1, -1, 2]]). In each row there are 4 numbers. How do I remove row#3 and row#4? In row#3 and row#4, 1 and 2 appear more than once respectively.
Is there a faster way to do it for arbitrary number of rows and columns? The main aim is to remove those rows where a non negative number appear more than once.