count values in columns not in list pandas 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['fare'].value_counts(bins=7)
(df[education]=='9th').sum()
df['fare'].value_counts(bins=7)