remove non-alphabetic pandas python

65

remove non-alphabetic pandas python -

import pandas as pd

ded = pd.DataFrame({'strings': ['a#bc1!', 'a(b$c']})

ded.strings.str.replace('[^a-zA-Z0-9]', '')

Comments

Submit
0 Comments