Pandas Series Frequency Value Counts
For a given pandas series, returning the frequency value counts can be returned with the value_counts() method.
import pandas as pd
a = pd.Series(['E', 'E', 'B', 'C', 'B', 'D', 'E', 'B', 'E', 'A', 'E', 'B', 'C',
'D', 'E', 'E', 'A', 'E', 'B', 'E', 'B'])
a.value_counts()
The value_counts() returns can also be normalized i.e. proportion instead of counts
a.value_counts(normalize=True)