python list distinct values code example
Example 1: python list with only unique values
my_list = list(set(my_list))
Example 2: python list of dictionary unique
>>> [dict(y) for y in set(tuple(x.items()) for x in d)]
my_list = list(set(my_list))
>>> [dict(y) for y in set(tuple(x.items()) for x in d)]