Get unique elements from a list of lists Using set with tuple: unique_data = [list(x) for x in set(tuple(x) for x in testdata)] More info here and here