I have a list which has repeating items and I want a list of the unique items with their frequency.
For example, I have [\'a\', \'a\', \'b\', \'b\', \'b\']
[\'a\', \'a\', \'b\', \'b\', \'b\']
Convert any data structure into a pandas series s:
CODE:
for i in sort(s.value_counts().unique()): print i, (s.value_counts()==i).sum()