I have been using an column where i have to remove non numeric characters from the column , however i have tried but not working in my case.
Input data
column1
675@12
##256H8\
A--5647R
NaN
222674
98AB 789
Expected Output
column1
67512
2568
5647
NaN
222674
98789
Code i have been using :
df['column1'] = re.sub("[^0-9^.]", "", str(df['column1']))
But its not working , Please suggest the possible way.