Update filter_unique.md
This commit is contained in:
committed by
GitHub
parent
4517b7254f
commit
64f631fee8
@ -5,7 +5,7 @@ tags: list,beginner
|
||||
|
||||
Filters out the unique values in a list.
|
||||
|
||||
Use a `Counter` to get the count of each value in the list.
|
||||
Use a `collections.Counter` to get the count of each value in the list.
|
||||
Use list comprehension to create a list containing only the non-unique values.
|
||||
|
||||
```py
|
||||
|
||||
Reference in New Issue
Block a user