Hi, I am trying to export a dataframe with hindi sentences, and I have added following line to escape emojis in sentences or some illegal characters.
intent_df = intent_df.applymap(lambda x: x.encode('unicode_escape'). decode('utf-8') if isinstance(x, str) else x)
but this also removes hindi characters. And I am sure this same thing will happen with other languages too. So, can anyone help me out on how to just escape emojis and some unwanted symbols?