I'm trying to extract emojis from customer reviews into a separate column in python DataFrame. The code I'm using is:
def emojis(review): Content = review
for i in Content:
if i in emoji.UNICODE_EMOJI:
return i
else:
return 'NaN'
The problem is that it doesn't pick up all emojis from Content. Any ideas how to solve this issue?