Talha B. avatar

The most used emojis on HIVE

talhasch

Published: 22 Jun 2020 β€Ί Updated: 22 Jun 2020The most used emojis on HIVE

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!

Leave The most used emojis on HIVE to:

Written by

Founder @runkod, Software Developer @ecency, Lifelong Learner

Read more #hive-129924 posts


Best Posts From Talha B.

We have not curated any of talhasch's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Talha B.