count times a certain value occurs in a column dataframe code example Example: pandas count specific value in column (df[education]=='9th').sum()