title: I have a CSV file with header. Want to remove first 5 row of csv but not header? In Python
body: <p>I have a below CSV file with the header(A,B,C,D):</p>
  
  <pre><code>A,B,C,D
  1,2,3,4
  2,1,3,5
  6,8,0,9
  4,7,9,2
  2,5,4,9
  1,1,7,3
  2,9,5,6
  </code></pre>
  
  <p>I want output after removing top 5 lines but not header:</p>
  
  <pre><code>A,B,C,D
  1,1,7,3
  2,9,5,6
  </code></pre>
  
  <p>Below is my Python code snippet, but am not able to add any header retaining code:</p>
  
  <blockquote>
    <p>with open(filename.csv , 'rb') as infile:
                data_in = infile.readlines()</p>
    
    <p>with open ('temp.csv', 'wb') as outfile:
                outfile.writelines(data_in[5:])</p>
  </blockquote>
  
  <p>Please help me in this.In my case header is also deleting, but I want to retain header every time.</p>