Posted on 26th July 2024|11 views
How can I convert a string to an array in python?
Is there any way to convert this following string into an array here I am dealing with the string '["hi", "welcome", "to", "mindmajix"]'
Posted on 26th July 2024| views
import numpy as nup
x=nup.array([‘hi’, ‘welcome’, ‘to’, ‘mindmajix’])
print x # ['hi' 'welcome' 'to' 'mindmajix']