I have a column in a dataframe with strings like this "Boris" and other with extra text between paranthesis, like this "Igor (king)". I just want to get a column with Boris / Igor / ... (everything between parenthesis deleted). I tried this
pattern = '(^[\w]*)(?:[w]* \()'
Test =df['column'].str.extract(pattern)
I got back only the names that have extra text with parenthesis : i get NaN / Igor /Nan
Some help ?