I need advice on how to proceed when slicing a string with an explanation.
I have in dataframe column:
data |
---|
(0,1), (1,2) |
And I would like to divide it into this form.
1 | 2 |
---|---|
(0,1) | (1,2) |
How to split this string correctly?
When I use this:
.str.split(',', expand=True)
, it also divides my string between parentheses, but I don't want to. How to do this correctly (and an explanation please)?