title: Write a float array to a CSV file
body: <p>I have a float array (created by: <code>array('f')</code>) and I want to write its contents as a 1-column CSV file, that is, each element of the array will take one line of the resulting file.  </p>
  
  <pre><code>from array import array
  
  my_array = array('f')
  with open(filename, 'w') as output:
      my_array = populate_method()
      writer = csv.writer(output)
      print(my_array)  # verifying that the data exist
      writer.writerows(my_array.tolist())
  </code></pre>
  
  <p>I get this error at the latest line: <code>_csv.Error: sequence expected</code>.<br>
  What is wrong? Isn't the list a sequence?</p>