I have a csv file that looks like the following:
Halley Bailey - 1998
Hayley Orrantia (1994-) American actress, singer, and songwriter
Ken Watanabe (actor)
etc...
I’d like to remove the items in the parentheses, as well as the commas in some of the names that have commas, so that the dataframe looks like this:
Halley Bailey
Hayley Orrantia
Ken Watanabe
I attempted using the following code, which succeeds in removing the dates after the name, but not the parentheses or things after commmas, how could I expand it so it can replace all these items?
regex = '|'.join(map(re.escape, df['actors']))