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