how to count a specific value in a column in pandas code example Example: pandas count specific value in column (df[education]=='9th').sum()