© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Paul Apivat
Documenting and sharing everything I learn about Data Science, Machine Learning, R, Python, SQL and more.
Counters Counter is a dict subclass for counting hashable objects (see doc). Back to our example in the previous section, we can use Counter instead of dict, specifically for counting: from collections import Counter # we can count the letters in t...
No responses yet.