pandas unique count of categories to category and freq of top category code example Example: value count in python col-name.value_count()