pandas count occurence of value in a column code example
Example 1: pandas count specific value in column
(df[education]=='9th').sum()
Example 2: python - count number of occurence in a column
print df
col1 education
0 a 9th
1 b 9th
2 c 8th
len(df[df['education'] == '9th'])