Remove punctuations in pandas [duplicate]
I solved the problem by looping through the string.punctuation
def remove_punctuations(text): for punctuation in string.punctuation: text = text.replace(punctuation, '') return text
You can call the function the same way you did and It should work.
df["new_column"] = df['review'].apply(remove_punctuations)