I\'m trying to execute the following
>> from numpy import * >> x = array([[3,2,3],[4,4,4]]) >> y = set(x) TypeError: unhashable type: \'num
The immutable counterpart to an array is the tuple, hence, try convert the array of arrays into an array of tuples:
>> from numpy import * >> x = array([[3,2,3],[4,4,4]]) >> x_hashable = map(tuple, x) >> y = set(x_hashable) set([(3, 2, 3), (4, 4, 4)])