title: IndexError: too many indices. Numpy Array with 1 row and 2 columns
body: <p>When I try to get just the first element of an array like this</p>
  <pre><code>import numpy
  
  a = numpy.array([1,2])
  
  a[:,0]
  </code></pre>
  <p>I get this error</p>
  <pre class="lang-none prettyprint-override"><code>---------------------------------------------------------------------------
   IndexError                                Traceback (most recent call last)
  &lt;ipython-input-3-ed371621c46c&gt; in &lt;module&gt;()
  ----&gt; 1 a[:,0]
  
  IndexError: too many indices
  </code></pre>
  <p>I would like to find a way to do this while still using slicing because the full code opens and reads many different files using <code>numpy.loadtxt()</code> all having two columns which vary from 1 to some N.</p>