I have a dataframe in python with an update column containing text. In each row of this column there is a value between parenthesis that I want to grab and place in a new column.
So if it says "Day To Day (Hand) - Bembry did not play" I want to take Hand and add it to a new column named Injury in the same df
See the code below:
display(df.dtypes)
Team object
Date object
Update object
dtype: object
display(df.head())
Team Date Update
0 Atlanta Hawks Fri, Feb 7, 2020 Day To Day (Hand) - Bembry did not play in Fri...
1 Atlanta Hawks Sat, Feb 8, 2020 Out (Right Calcaneus) - Capela is out for Sund...
2 Atlanta Hawks Sat, Feb 8, 2020 Day To Day (Calf) - Fernando is probable for S...
3 Atlanta Hawks Sat, Feb 8, 2020 Day To Day (Right Knee) - Graham is probable f...
4 Atlanta Hawks Sat, Feb 8, 2020 Day To Day (Left Ankle) - Hunter is questionab...
Would someone be able to point me in the right direction? Thanks in advance.