Get unique elements from a list of lists

less than 1 minute read

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

Leave a comment