title: AttributeError: 'DataFrame' object has no attribute 'label'
body: <p>I created a data frame using the following line: </p>
  
  <pre><code>df = pd.read_csv('/Users/cs213/Desktop/class1.csv', sep = ',', error_bad_lines=False)
  </code></pre>
  
  <p>and if print the columns as such</p>
  
  <pre><code>print (df.columns) 
  </code></pre>
  
  <p>I get </p>
  
  <blockquote>
    <p>Index(['Text', 'label'], dtype='object')</p>
  </blockquote>
  
  <p>But if I wanted to use the columns as in here </p>
  
  <pre><code>df = df[df.Text.apply(lambda x: x.isnumeric())]
  df = df[df.Text.apply(lambda x: x !="")]
  df = df[df.label.apply(lambda x: x !="")]
  </code></pre>
  
  <p>I get the following error: </p>
  
  <blockquote>
    <p>AttributeError: 'DataFrame' object has no attribute 'label'</p>
  </blockquote>
  
  <p>I have already tried the solution in here: 
  <a href="https://stackoverflow.com/q/38134643/7631183">Data-frame Object has no Attribute</a> 
  and it did not work. </p>
  
  <p>Sample of the CSV 
  <a href="https://drive.google.com/open?id=1QzT_RxhoD3pNdW0vUI6qcJz9L7PsaKCW" rel="nofollow noreferrer"> file </a></p>
  
  <p>Here is the output of df.head()
  <a href="https://i.stack.imgur.com/GLNls.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GLNls.png" alt="enter image description here"></a></p>