It seems like there should be a simpler way than:
import string s = \"string. With. Punctuation?\" # Sample string out = s.translate(string.maketrans(\"\",\
This might not be the best solution however this is how I did it.
import string f = lambda x: ''.join([i for i in x if i not in string.punctuation])