I have a data, where there are words in some rows. For example:
Test String
(Test1) String
Test (String1)
I need to find a substring in brackets using pandas. So, output here will be ['Test1', 'String1']
I tried something like this, but I can't find a word exactly in brackets.
df['column'].str.extract('([A-Z]\w{0,})')