# Getting frequency counts of a columns in Pandas DataFrame in Python # importing pandas as pdimport pandas as pd  # sample dataframedf = pd.DataFrame({'A': ['foo', 'bar', 'g2g', 'g2g', 'g2g',                         'bar', 'bar', 'foo', 'bar'],                  'B': ['a', 'b', 'a', 'b', 'b', 'b', 'a', 'a', 'b'] })  # frequency count of column Acount = df['A'].value_counts()print(count)