title: How can I make a numpy ndarray from bytes?
body: <p>I can convert a numpy ndarray to bytes using <code>myndarray.tobytes()</code> Now how can I get it back to an ndarray? </p>
  
  <p>Using the example from the <code>.tobytes()</code> method docs: </p>
  
  <pre><code>&gt;&gt;&gt; x = np.array([[0, 1], [2, 3]])
  &gt;&gt;&gt; bytes = x.tobytes()
  &gt;&gt;&gt; bytes
  b'\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00\x03\x00\x00\x00'
  
  &gt;&gt;&gt; np.some_magic_function_here(bytes)
  array([[0, 1], [2, 3]])
  </code></pre>