SyntaxFix
Write A Post
Hire A Developer
Questions
df.category.value_counts()
This short little line of code will give you the output you want.
If your column name has spaces you can use
df['category'].value_counts()