human
Convert string to numpy array
assistant
Here is some code to convert a string 'mystr' to numpy array of integer values

print(np.array(list(mystr), dtype=int))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.