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