count specific values dataframe python code example
Example 1: pandas count specific value in column
(df[education]=='9th').sum()
Example 2: count specific instances in a columb in pandas
df.describe(include=['O']) # give count of unieque categorical