0

Can anyonr please help me and tell me How to remove emojies from arabic script in the dataframe. example:

input: يااا واجعوط هذا راه باغي يبدع فالسانكيام‍♀️

output: يااا واجعوط هذا راه باغي يبدع فالسانكيام

I used lots of codes but it deletes everything not English + emojies

tous
  • 37
  • 8
  • Have you tried this library? https://pypi.org/project/emoji/ -- https://carpedm20.github.io/emoji/docs/#replacing-and-removing-emoji – teapot418 Feb 28 '23 at 11:51
  • yes it deletes all non english letters also – tous Feb 28 '23 at 12:04
  • 1
    New Emoji are always being added, so exiting answers that list codepoints become stale relatively quickly, and the distinction between text mode and emoji mode for some. Personally, I would use a regular expression using the regex module (import regex as re) rather than the re module. Then use the pattern r'\p{Emoji}' to remove Emoji using re.sub(). – Andj Mar 01 '23 at 05:44

0 Answers0