-2

I want to just remove emoji from one column and sepecial charater for eg (@ #.:/,.). Will remain in that specific column ?

I want to clean the data

  • Please read [ask] and [How to make good reproducible pandas examples](https://stackoverflow.com/questions/20109391/how-to-make-good-reproducible-pandas-examples). We require sample data, the desired output, and your attempt at producing the desired output. – timgeb Nov 28 '22 at 10:13
  • what is a "sepecial charater"? – Sembei Norimaki Nov 28 '22 at 10:14

1 Answers1

0

You can remove emojis from your data columns using the following code

df.astype(str).apply(lambda x: x.str.encode('ascii', 'ignore').str.decode('ascii'))