1print df
2 col1 education
30 a 9th
41 b 9th
52 c 8th
6
7print df.education == '9th'
80 True
91 True
102 False
11Name: education, dtype: bool
12
13print df[df.education == '9th']
14 col1 education
150 a 9th
161 b 9th
17
18print df[df.education == '9th'].shape[0]
192
20print len(df[df['education'] == '9th'])
212