dataframe = dataframe.applymap(lambda x: x.encode('unicode_escape'). decode('utf-8') if isinstance(x, str) else x)