title: Select multiple columns by labels in pandas
body: <p>I've been looking around for ways to select columns through the python documentation and the forums but every example on indexing columns are too simplistic. </p>
  
  <p>Suppose I have a 10 x 10 dataframe</p>
  
  <pre><code>df = DataFrame(randn(10, 10), index=range(0,10), columns=['A', 'B', 'C', 'D','E','F','G','H','I','J'])
  </code></pre>
  
  <p>So far, all the documentations gives is just a simple example of indexing like</p>
  
  <pre><code>subset = df.loc[:,'A':'C']
  </code></pre>
  
  <p>or</p>
  
  <pre><code>subset = df.loc[:,'C':]
  </code></pre>
  
  <p>But I get an error when I try index multiple, non-sequential columns, like this</p>
  
  <pre><code>subset = df.loc[:,('A':'C', 'E')]
  </code></pre>
  
  <p>How would I index in Pandas if I wanted to select column A to C, E, and G to I? It appears that this logic will not work</p>
  
  <pre><code>subset = df.loc[:,('A':'C', 'E', 'G':'I')]
  </code></pre>
  
  <p>I feel that the solution is pretty simple, but I can't get around this error. Thanks!</p>