0

I am cleaning a lot of data and calling replace() for every string/character that I want to replace is not difficult but I want to know if it can be done this way.

What I am thinking is:

to_be_replaced = ['\n' , '\t' , '"']
str.replace(to_be_replaced, '')

Would this work?

jonrsharpe
  • 107,083
  • 22
  • 201
  • 376
S B
  • 27
  • 4

0 Answers0