I want to remove duplicates from each list in a list of lists. Is there an efficient, pythonic way to do that?
v=[[[234,354,400,400,230,300,500]],[[2,2,24]],[[56,102,98]]]
And I'd liked to remove all the duplicates from each individual list, then sort each individual list, producing an output of:
[[[230,234,300,354,400,500]],[[2,24]],[[56,98,102]]]
If at all possible, I'd like to keep the structure of the lists as they are(double brackets). Is there any (relatively) easy way to do this in python?
I've tried a few other ways, but found it difficult to work with the structure of the list and the fact that it is unhashable makes it a little tougher.