The most used emojis on HIVE

talhasch(53)
Published in
Python
Words
244
Reading
2 min
Listen
Play
6y

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!

The most used emojis on HIVE | Ecency