Count the frequency that a value occurs in a dataframe column

I have a dataset

category
cat a
cat b
cat a

I'd like to return something like the following which shows the unique values and their frequencies

category   freq 
cat a       2
cat b       1

← Назад к списку