I have a pandas dataframe with a column 'Country' that has values like these: 'Switzerland17', 'Bolivia (Plurinational State of)'. I want to convert them to just 'Switzerland', 'Bolivia'. How can I do that?
PS: I am able to solve the question using for loops but that's taking a long time as we have a dataframe here. Is there any pandas dataframe function we can use to solve this question?