In [1]:
pip install emoji
Collecting emoji
  Downloading (43kB)
Building wheels for collected packages: emoji
  Building wheel for emoji ( started
  Building wheel for emoji ( finished with status 'done'
  Created wheel for emoji: filename=emoji-0.5.4-cp37-none-any.whl size=42180 sha256=0d9add1c7d96a3556bbcac4efaeafb5520675cdd9a6b73a753a5b68f9bc95f5c
  Stored in directory: C:\Users\User\AppData\Local\pip\Cache\wheels\2a\a9\0a\4f8e8cce8074232aba240caca3fade315bb49fac68808d1a9c
Successfully built emoji
Installing collected packages: emoji
Successfully installed emoji-0.5.4
Note: you may need to restart the kernel to use updated packages.
In [2]:
import emoji
result = emoji.emojize('Python is :thumbs_up:')
# 'Python is 👍'

# You can also reverse this:
result = emoji.demojize('Python is 👍')
# 'Python is :thumbs_up:'
Python is 👍
Python is :thumbs_up: