Issue
Hi I was trying to extract only the no's from a columns in my df with this code:
(df['hello']=='No')
But it changes the values from the df and put it like a boolean values, I just want to value_count in that column the No's, but I'm not sure what I'm doing wrong.
Solution
If you would like count
(df['hello']=='No').sum()
More like value_counts
df['hello'].value_counts().loc['No']
Answered By - BENY
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.