title: How to slice a 2D Python Array? Fails with: "TypeError: list indices must be integers, not tuple"
body: <p>I have a 2d array in the numpy module that looks like:</p>
  
  <pre><code>data = array([[1,2,3],
                [4,5,6],
                [7,8,9]])
  </code></pre>
  
  <p>I want to get a slice of this array that only includes certain columns of element.  For example I may want columns 0 and 2:</p>
  
  <pre><code>data = [[1,3],
          [4,6],
          [7,9]]
  </code></pre>
  
  <p>What is the most Pythonic way to do this?  (No for loops please)</p>
  
  <p>I thought this would work:</p>
  
  <pre><code>newArray = data[:,[0,2]]
  </code></pre>
  
  <p>but it results in a:</p>
  
  <pre><code>TypeError: list indices must be integers, not tuple
  </code></pre>