title: Python Numpy: Extracting a row from an array
body: <p>I'm trying to extract a row from a Numpy array using</p>
  
  <pre><code>t = T[153,:]
  </code></pre>
  
  <p>But I'm finding that where the size of <code>T</code> is (17576, 31), the size of <code>t</code> is (31,) - the dimensions don't match!</p>
  
  <p>I need <code>t</code> to have the dimensions (,31) or (1,31) so that I can input it into my function. I've tried taking the transpose, but that didn't work.</p>
  
  <p>Can anyone help me with what should be a simple problem?</p>
  
  <p>Many thanks</p>