Say that I have a string that looks something like this:
x = "['345565', '1234213', '12313523', '1232346345', '1223123']"
Is there a built-in method in Python or numpy that I can use to automatically convert this into a list? I'm familiar with the eval()
method and what I'm looking for is something of the same idea.