How can I split a string of tuples into a list?
For example I have this SARIMAX(0, 1, 1)x(0, 1, 1, 12)
string, and I want to convert it into a list of tuples into this ['(0, 1, 1)', '(0, 1, 1, 12)']
This is my code:
sarimax_res = 'SARIMAX(0, 1, 1)x(0, 1, 1, 12)'
sarimax_res = sarimax_res.replace('SARIMAX', '').replace('x', '')
My output:
'(0, 1, 1)(0, 1, 1, 12)'