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],
np.unique works given a list of tuples:
>>> np.unique([(1, 1), (2, 2), (3, 3), (4, 4), (2, 2)]) Out[9]: array([[1, 1], [2, 2], [3, 3], [4, 4]])
With a list of lists it raises a TypeError: unhashable type: 'list'
TypeError: unhashable type: 'list'