python number of times an item is repeated in a column code example
Example 1: pandas count specific value in column
(df[education]=='9th').sum()
Example 2: how to count special values in data in python
df['sex'].value_counts()
(df[education]=='9th').sum()
df['sex'].value_counts()