The most used emojis on HIVE

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!

H2
H3
H4
3 columns
2 columns
1 column
12 Comments
Ecency