<human>:  Convert string to numpy array
<bot>: Here is some code to create an array containing the conversion of string '100110' into separate elements

np.array(map(int, '100110'))

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