I have a problem with the type of one of my column in a pandas dataframe. Basically the column is saved in a csv file as a string, and I wanna use it as a tuple to be able t
Alternatively, you might consider regular expressions:
pattern = re.compile("[0-9]\.[0-9]") df.LABELS.apply(pattern.findall)