title: Why do I keep getting the error "AttributeError: '_io.TextIOWrapper' object has no attribute 'writerows" when using csv module?
body: <p>I am imported CSV and the way the documents told me to do it resulted in failures.</p>
  
  <p>Here is the code that is having the problems.</p>
  
  <pre><code>outfile = open("D:/stock_information/processed data/standard_deviant.csv", "w")
  write_outfile = csv.writer(outfile)
  
  for i in range(len(all_standard_deviant_info)):
      outfile.writerows(all_standard_deviant_info[i][0])
      outfile.writerows(all_standard_deviant_info[i][1])
  </code></pre>
  
  <p>Does anyone know why it's saying .writerows doesn't exist?</p>