title: Read all the rows of a CSV
body: <p>Hey I have this code that concatenate all the csv files of a folder in a only csv file. The problem is that this line of code <code>if i! = 0:</code> prevents the first row of each csv from being read except in the first csv. Any ideas on how to modify it so that it can read all the rows of the csv</p>
  
  <pre><code>#!/usr/bin/env python
  
  
  import pandas as pd
  import glob, os
  import shutil
  
  #import csv files from folder
  path = r'/Users/sonia/Animalsmanage/output'
  allFiles = glob.glob(path + "/*.csv")
  
  with open('finaloutput.csv', 'wb') as outfile:
      for i, fname in enumerate(allFiles):
          with open(fname, 'rb') as infile:
              if i != 0:
                  infile.readline() 
                  outfile.write(bytearray(b'\n'))   # add a empty line
              shutil.copyfileobj(infile, outfile)
              print(fname + " has been imported.")
  </code></pre>