title: How to delete a column from a data frame with pandas?
body: <p>I read my data</p>
  
  <pre><code>import pandas as pd
  df = pd.read_csv('/path/file.tsv', header=0, delimiter='\t')
  print df
  </code></pre>
  
  <p>and get:</p>
  
  <pre><code>          id    text
  0    361.273    text1...
  1    374.350    text2...
  2    374.350    text3...
  </code></pre>
  
  <p>How can I delete the <code>id</code> column from the above data frame?. I tried the following:</p>
  
  <pre><code>import pandas as pd
  df = pd.read_csv('/path/file.tsv', header=0, delimiter='\t')
  print df.drop('id', 1)
  </code></pre>
  
  <p>But it raises this exception:</p>
  
  <pre><code>ValueError: labels ['id'] not contained in axis
  </code></pre>