title: Convert string to numpy array
body: <p>Input:</p>
  <pre><code>mystr = &quot;100110&quot;
  </code></pre>
  <p>Desired output numpy array:</p>
  <pre><code>mynumpy == np.array([1, 0, 0, 1, 1, 0])
  </code></pre>
  <p>I have tried:</p>
  <pre><code>np.fromstring(mystr, dtype=int, sep='')
  </code></pre>
  <p>but the problem is I can't split my string to every digit of it, so numpy takes it as an one number. Any idea how to convert my string to numpy array?</p>