I have a dataframe as under
ID Ph No
0 (090)993322
1 +93 11223344
2 91-935568
3 996688552
4 91 558866225
5 996633...
I want to remove all the special characters and spaces from the column Ph No. I used the below code
# Cleaning the phone numbers for special characters and spaces
erase = [",","-","_",".","+","(",")", " "]
for i in erase:
#print(i)
df['New Ph No'] = df['Ph No'].astype(str).str.replace(i,"",regex=True)
Though I didn't get any errors, when I study the output there are certain rows still containing special character like + or ( or ... and white spaces in-between numbers. I even tried .replace(" ","") on the output but that also does not seem to work.
How do i go about this?