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