I have a string, which is a list of numpy arrays. The string looks like
k = '[array([  0, 269, 175, 377]), array([  0,  56, 149, 163])]'
When I do
ast.literal_eval(k)
I get an error saying malformed node or string.
What is the problem here? Is there any better way to convert it back to a list?
Thanks for help!!
 
     
     
    