pandas.Series.value_counts

Series.value_counts(normalize=False)

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

Parameters :

normalize: boolean, default False :

If True then the Series returned will contain the relative frequencies of the unique values.

Returns :

counts : Series