title: pandas to append result into csv file
body: <p>I'm trying to append the result of the function to csv file, but the result is getting overwritten and i am only getting the value of last file in the csv.
  My code is  something like this : </p>
  
  <pre><code>def Read (indir= "C:/Users/SSA/Desktop/New folder",outfile= "C:/Users/SSA/Desktop/final.csv"):
      os.chdir(indir)
      fileList= glob.glob("*.csv")
      for filename in fileList:
          print(filename)
          df=pd.read_csv(filename)
  
          ......
  
  
  
          y = df3.iloc[:,15].max()
          z= df3.iloc[:,15].min()
          x = Total_Time - Utilisation_time
          f = x / len(great)
          p = 6 * On_I
  
          df = pd.DataFrame({'Result':[y,z,x,f,p ]})
  
          df.to_csv(outfile, index = False)
          df.append('df', outfile)
  </code></pre>
  
  <p>When i am calling the function Read().
  I get the csv file with values of only last file in the folder. its not getting appended!</p>
  
  <p>Output: (which is the result of the last file only!!</p>
  
  <pre><code>filename
  460.99
  214.96
  175.6663888889
  0.0295237628
  945.4583333333
  </code></pre>