Suppose I have a DataFrame of created like this:
import pandas as pd s1 = pd.Series([\'a\', \'b\', \'a\', \'c\', \'a\', \'b\']) s2 = pd.Series([\'a\', \'f\',
You can use pd.value_counts (value_counts is also a series method):
pd.value_counts
In [20]: d.apply(pd.value_counts) Out[20]: s1 s2 a 3 3 b 2 NaN c 1 NaN d NaN 1 f NaN 3
and than plot the resulting DataFrame.