title: Writing array to csv python (one column)
body: <p>I'm trying to write the values of an array to a .csv file in python. But when I open the file in excel, the data is shown in one row. I want to have one column where each member of the array is a row.</p>
  
  <p>The array "testLabels" is of the form:</p>
  
  <pre><code>array(['deer', 'airplane', 'dog', ..., 'frog', 'cat', 'truck'], 
    dtype='&lt;S10')
  </code></pre>
  
  <p>And the code I use to write to the csv is:</p>
  
  <pre><code>import csv
  resultFile = open("/filepath",'wb')
  wr = csv.writer(resultFile)
  wr.writerows([testLabels])
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>