I have a dataset
|category| cat a cat b cat a
I\'d like to be able to return something like (showing unique values and frequency)
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()