I'm reading lists that have lost their format while conversions, so the orinial list looks now like:
my_list = '[[-0.2226099967956543, 0.2235500067472458, -0.2384900003671646, 0.14377999305725098]]'
for that I'm doing the following:
my_list = my_list.replace('[','').replace('[','').split()
type(my_list)
list
Which works, but doesn't looks very pythonic to me. Is thera better option?