python - count number of occurence in a column
print df
col1 education
0 a 9th
1 b 9th
2 c 8th
len(df[df['education'] == '9th'])
python - count number of occurence in a column
print df
col1 education
0 a 9th
1 b 9th
2 c 8th
len(df[df['education'] == '9th'])
count specific instances in a columb in pandas
df.describe(include=['O']) # give count of unieque categorical
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us