import numpy
vals = numpy.array([[1, 2, 3], [4, 5, 6], [7, 8, 7], [0, 4, 5], [2, 2, 1],
    [0, 0, 0], [5, 4, 3]])
a = (vals[:, (0)] == vals[:, (1)]) | (vals[:, (1)] == vals[:, (2)]) | (vals
    [:, (0)] == vals[:, (2)])
vals = numpy.delete(vals, numpy.where(a), axis=0)
Удаление дубликатов в каждой строке массива numpy