pandas 0.8.1 documentation

pandas.Series.value_counts

Series.value_counts()

Returns Series containing counts of unique values. The resulting Series will be in descending order so that the first element is the most frequently-occurring element. Excludes NA values

Returns :counts : Series