Arshad Mehmood

Search the blog

    Today I Learned

    Get unique elements from a list of lists

    python

    Using set with tuple:

    unique_data = [list(x) for x in set(tuple(x) for x in testdata)]

    More info here and here