title: How to drop first row using pandas?
body: <p>I've searched at other questions related to dropping rows but could not find one that worked:</p>
  
  <p>I have a CSV file exported from the tool screaming frog that looks like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>Internal - HTML |               |             |
  --------------- | --------------|-------------|
     Address      |   Content     | Status Code |
  ----------------|---------------|-------------|
  www.example.com |   text/html   |   200       |
  </code></pre>
  
  <p>I want to remove the first row that contains 'Internal - HTML'. When analyzing it with <code>df.keys()</code> I get this information" <code>Index(['Internal - HTML'], dtype='object')</code>.</p>
  
  <p>I want to use the second row as the Index, which contains the correct column labels.</p>
  
  <p>When I use the code:</p>
  
  <pre><code>a = pandas.read_csv("internal_html.csv", encoding="utf-8")
  a.drop('Internal - HTML')
  a.head(3)
  </code></pre>
  
  <p>I get this error: <code>KeyError: 'Internal - HTML'</code></p>
  
  <p>I also tried what was suggested here <a href="https://stackoverflow.com/questions/29765548/remove-index-name-in-pandas][1]">Remove index name in pandas</a> and also tried resetting the index:</p>
  
  <pre><code>a = pandas.read_csv("internal_html.csv", encoding="utf-8")
  a.reset_index(level=0, drop=True)
  a.head(3)
  </code></pre>
  
  <p>None of the options above worked.</p>