Filter non-unique list values
Creates a list with the non-unique values filtered out.
- Use
collections.Counter
to get the count of each value in the list. - Use a list comprehension to create a list containing only the unique values.
Creates a list with the non-unique values filtered out.
collections.Counter
to get the count of each value in the list.