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
  • 115,751
  • 26
  • 228
  • 437
S B
  • 47
  • 6

0 Answers0