title: AttributeError: 'list' object has no attribute 'to_csv'
body: <p>I'm trying to save my merged dataframe into a CSV file. As soon as the code hits on the "data.to_csv" line, it breaks. My code is as follows:</p>
  
  <pre><code>import pandas as pd
  import numpy as np
  import os,errno
  import glob
  
  
  print ("Path has been read successfully")
  path1 = glob.glob('S:\*Data\*Files\*Raw Data\*CPU\*Perf\*YesterdayDataset*.xlsx')
  print (path1)
  path2 = glob.glob("S:\*Data\*Files\*Raw Data\*CPU\*Perf\*CPUPerf_201920.csv")
  print ("Path has been read successfully")
  print ("Action has been completed successfully")
  
  data = []
  
  for df in path1:
      df = pd.read_excel(df)  
      data.append(df)
  
  data.to_csv("H:\\test1.csv", index = False)
  
  
  
  def sremove():
      try:
          os.remove()
      except OSError as e:
          if e.errno != errno.ENOENT:
              raise 
  </code></pre>
  
  <p>The error I'm receiving after executing this code is: </p>
  
  <blockquote>
    <p>AttributeError: 'list' object has no attribute 'to_csv'</p>
  </blockquote>
  
  <p>Any help on that will be greatly appreciated. Thank you</p>