I have a Dataframe as follows:
df
title TestData Value
0 A Test1(data) 1.0
1 B t(data2) 2.2
2 C Ts(data 3) 3.3
I want to extract from the entire TestData
column the data within parenthesis as follows:
title TestData Value
0 A data 1.0
1 B data2 2.2
2 C data 3 3.3
The index of the parenthesis keeps changing so does the length of the string within parenthesis. Any idea of how to do it?