I have a dataframe with a column "clear_message", and I created a column that counts all the words in each row.
history['word_count'] = history.clear_message.apply(lambda x: Counter(x.split(' ')))
For example, if the rows message is: Hello my name is Hello
Then the counter in his row, will be Counter({'Hello': 2, 'is': 1, 'my': 1, 'name': 1})
The problem
I have emoji in my text, and I want also a counter for the emoji.
For example:
test = '