title: Select specific CSV columns (Filtering) - Python/pandas
body: <p>I have a very large CSV File with 100 columns. In order to illustrate my problem I will use a very basic example.</p>
  
  <p>Let's suppose that we have a CSV file.</p>
  
  <blockquote>
  <pre><code>in  value   d     f
  0    975   f01    5
  1    976   F      4
  2    977   d4     1
  3    978   B6     0
  4    979   2C     0
  </code></pre>
  </blockquote>
  
  <p>I want to select a specific columns. </p>
  
  <pre><code>import pandas
  data = pandas.read_csv("ThisFile.csv")
  </code></pre>
  
  <p>In order to select the first 2 columns I used </p>
  
  <pre><code>data.ix[:,:2]
  </code></pre>
  
  <p>In order to select different columns like the 2nd and the 4th. What should I do?</p>
  
  <p>There is another way to solve this problem by re-writing the CSV file. But it's huge file; So I am avoiding this way.</p>