I don't think you intended to put DATA in quotes on the right hand side. That makes it literally the string D A T A, so all those replacements are no-ops, and you could simplify it to:
DATA = 'DATA'
But that's probably not what you wanted.
My prediction is that this will be by far the most efficient way to do what you are trying to do:
py> DATA = "Hello, 'World'()"
py> DATA.translate(dict.fromkeys(ord(c) for c in ",'()"))
That's in Python 3 -- in Python 2, using translate will still probably be the fastest, but you'll need to call it like this:
DATA.translate(string.maketrans("", ""), ",'()")
I also expect that the string replace() method will be second fastest, and re.sub will be the slowest, by a very long way.
As a general rule, you should avoiding using regexes unless the text you are searching for actually contains a regular expression of some kind. If it's merely a literal character or substring, standard string methods will probably be faster.
a tip for you:
- don't escape quotes unless you don't need to, use the other quote.
s = ''' # No, don't do this!
s = "'" # Better!
and vice versa.