value_counts() (Pandas)

s.value_counts() counts how many times each distinct value appears in a Series and returns the tallies sorted from most to least frequent. It is the fastest…