count certain value in column pandas code example
Example 1: pandas count specific value in column
(df[education]=='9th').sum()
Example 2: pandas count values by column
df = pd.DataFrame({'a':list('abssbab')})
df.groupby('a').count()
(df[education]=='9th').sum()
df = pd.DataFrame({'a':list('abssbab')})
df.groupby('a').count()