Python Misc. Tools¶ Counter¶ 1 2 3 4from collections import Counter c = Counter(dataframe) c.most_common(5) # 5 most common items in dataframe Counter in Python Docs