Removing duplicates in each row of a numpy array,numpy.array([v for v in vals if len(set(v)) == len(v)])