I have a dataframe which contain punctuation, I want to remove it but didn't get the proper solution.
Below is the dataframe, it is a sample:
data = {'text':['Great! But we still have the punctuation and numbers.', 'my name is %# &still and numbers.', '&"$ value is, right']}
df = pd.DataFrame(data)
df
I have tried the below option, but it didnt work
df['text'] = df['text'].map(lambda value:re.sub(string.punctuation,'',value))
df
Kindly suggest the best way to remove this punctuation, Note that my data-frame contain n numbers of punctuation's '!"#$%&\'()*+,-./:;<=>?@[\]^_`{|}~'. so hard code will not be a big solutions