1x = pd.DataFrame(dict(column1=["Lorum. ipsum.?"]))
2x["column1"] = x["column1"].str.replace('[^\w\s]','')
1# Define the function to remove the punctuation
2def remove_punctuations(text):
3 for punctuation in string.punctuation:
4 text = text.replace(punctuation, '')
5 return text
6# Apply to the DF series
7df['new_column'] = df['column'].apply(remove_punctuations)