Several time series were measured for the same objects. Unfortunately, the x and y coordinates are all put together into two comma-separated strings. To make things more complicated, the number of time series and the x coordinates varied between time series.
So, for example, I have a data frame that looks something like:
Object Overall_Prop X Y
obj1 4.5 "0, 1, 3, 6, 1, 3, 5, 7, 0, 1, 3, 5, 7" "3, 9, 10, 11, 8, 10, 12, 14, 3.1, 8.5, 9, 12.5, 14.5"
obj2 9.9 "1, 3, 6, 9" "7, 9, 10, 14.2"
What I would like to have is a data frame that looks like this one:
Object Overall_Prop Curve X Y
obj1 4.5 1 0 3
obj1 4.5 1 1 9
obj1 4.5 1 3 10
obj1 4.5 1 6 11
obj1 4.5 2 1 8
obj1 4.5 2 3 10
obj1 4.5 2 5 12
obj1 4.5 2 7 14
obj1 4.5 3 0 3.1
obj1 4.5 3 1 8.5
obj1 4.5 3 3 9
obj1 4.5 3 5 12.5
obj1 4.5 3 7 14.5
obj2 9.9 1 1 7
obj2 9.9 1 3 9
obj2 9.9 1 6 10
obj2 9.9 1 9 14.2
By the way, this question is different from pandas: how do I split a text in a column into multiple rows because here we have two columns and the resulting field must be paired appropriately.
Hence the additional complication.