Dictionaries Flashcards

1
Q

create dictionary {label:number of objects with that label}

A

from collections import Counter

count = Counter(labels)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly