title: Changing a string into a comma separated numpy int array
body: <p>I have a string that comes in bytes that has commas inside of it. </p>
  
  <p>ex. <code>b'-8 ,0 ,54 ,-30 ,28'</code></p>
  
  <p>I first change it into a string using </p>
  
  <pre><code>msg = str(msg, 'utf-8')
  </code></pre>
  
  <p>This part works. However I need to make this string into a numpy int array. I have tried splitting at the commas, but I wind up just getting a 1 dimensional numpy array. I would like for each value in the array to be split by a comma.</p>
  
  <pre><code>msg = str(msg, 'utf-8')
  
  z = [x.strip() for x in msg.split(',')]
  
  x = np.array(z)
  y = x.astype(np.int)
  </code></pre>
  
  <p>The error I get is </p>
  
  <pre><code>ValueError: Error when checking input: expected dense_1_input to have shape (5,) but got array with shape (1,)
  </code></pre>
  
  <p>Thank for the help!</p>