I need to find unique rows in a numpy.array.
numpy.array
For example:
>>> a # I have array([[1, 1, 1, 0, 0, 0], [0, 1, 1, 1, 0, 0],
The numpy_indexed package (disclaimer: I am its author) wraps the solution posted by Jaime in a nice and tested interface, plus many more features:
import numpy_indexed as npi new_a = npi.unique(a) # unique elements over axis=0 (rows) by default