I am looking for an efficient way to remove unwanted parts from strings in a DataFrame column.
Data looks like:
time result 1 09:00 +52A
i'd use the pandas replace function, very simple and powerful as you can use regex. Below i'm using the regex \D to remove any non-digit characters but obviously you could get quite creative with regex.
data['result'].replace(regex=True,inplace=True,to_replace=r'\D',value=r'')