The most used emojis on HIVE

in Python4 years ago

Emojis are the easiest way to show emotion through text. We all use them very often.

Have you ever wondered which emojis are most commonly used on HIVE? I did. As a small weekend project i decided to find that out.

At first,i needed a dataset in order to start analysis. I got latest 100k content from hivemind with the query below and saved into a csv.

SELECT body from hive_posts_cache ORDER BY post_id desc LIMIT 100000;

Dataset consist of mixed posts+comments.

This small piece of python script does the job:

import operator
import csv

import emoji

def extract_emojis(s):
  return ''.join(c for c in s if c in emoji.UNICODE_EMOJI)

with open('data.csv', 'r') as file:
    content = file.read()

emojis = extract_emojis(content)

group = {}
total = 0

for e in emojis:
    total += 1

    if e in group:
        group[e] += 1
    else:
        group[e] =1

sorted_group = sorted(group.items(), key=operator.itemgetter(1), reverse=True)

print('Total: {}'.format(total))

print("""
| Emoji    | Name     | Count    |  Percent |
| -------- | -------- | -------- | -------- |""")
for i in sorted_group[0:40]:
    [em, count] = i
    name = emoji.demojize(em).replace(':', '')
    perc = 100 * count/total
    print('|{} | {} | {} | {}% |'.format(em, name, count, '{:.2f}'.format(perc)))

20,127 emojis matched in total.

Here is list of the most used 40 emojis:

EmojiNameCountPercent
👍thumbs_up15547.72%
😊smiling_face_with_smiling_eyes13166.54%
😂face_with_tears_of_joy10415.17%
😉winking_face8584.26%
😁beaming_face_with_smiling_eyes7973.96%
🙂slightly_smiling_face7533.74%
😍smiling_face_with_heart-eyes7523.74%
red_heart7493.72%
😀grinning_face6523.24%
🤣rolling_on_the_floor_laughing5832.90%
🤗hugging_face5612.79%
🎉party_popper4192.08%
🙏folded_hands4082.03%
🥳partying_face3631.80%
🍍pineapple3271.62%
😎smiling_face_with_sunglasses3011.50%
😅grinning_face_with_sweat2951.47%
😄grinning_face_with_smiling_eyes2511.25%
😘face_blowing_a_kiss2491.24%
👏clapping_hands2481.23%
👌OK_hand2291.14%
🥰smiling_face_with_3_hearts2211.10%
👋waving_hand2051.02%
💕two_hearts1980.98%
heart_suit1940.96%
😃grinning_face_with_big_eyes1930.96%
white_heavy_check_mark1910.95%
🍻clinking_beer_mugs1660.82%
🏼medium_light_skin_tone1580.79%
smiling_face1470.73%
😆grinning_squinting_face1440.72%
📸camera_with_flash1390.69%
💪flexed_biceps1390.69%
🌺hibiscus1380.69%
victory_hand1350.67%
🔥fire1310.65%
🤙call_me_hand1280.64%
💖sparkling_heart1150.57%
🙌raising_hands1150.57%
💥collision1140.57%

According to the results, i can say that generally positive content is published on HIVE.

You can find source code here.

Hive on!

Sort:  

Now that is some great analysis!

Thumbs up!

I don't even know how to call an emoji! But I know how to call tipu!

@tipu curate

Thank you!

I have never wondered how often some emojis are used on Hive but now I want to know

Interesting, people tend to use emoji when they want to convey positive emotions. Opposite, usually ends up short without emojis 😊

yes, apparently that's right 😀

Nah. I don't like Emojis. I use emoticons :D

This is some analysis that I never knew I needed in my life, but boy am I glad that it exists. If anyone ever asks, I'm now prepared to tell them which emoji is the most popular on Hive. Cheers 👍

ESTM Boosting refund to @talhasch!
Due to one of these reasons:
1. Post is not published with Esteem apps.
2. Post is already curated by Esteem team.
3. Post is not curated by our curators within 24 hours.
4. Post might be too old post, try more recent content.
5. Author already received vote in last few hours, try again later.
Install Android: https://android.esteem.app, iOS: https://ios.esteem.app mobile app or desktop app for Windows, Mac, Linux: https://desktop.esteem.app
Learn more: https://esteem.app
Join our discord: https://discord.me/esteem

Wow, amazing job ! 👏

Nice post

And then there is me who never used a single emoji on Hive :D