Is there any way to create column header in csv file instead of row headers using python
<p>I am using the following way to create the row headers:</p>

<pre><code>header_names = ["Test Number", "result", "output_value","duration_of_test"]
csvwriter = csv.DictWriter(open(out_file, 'wb'), delimiter=',', fieldnames=header_names)
csvwriter.writeheader()
</code></pre>

<p>In the above code, when we are creating the header, by default it creates row header. But is there any way to create column header i.e., first column is header column and rest of the columns are test results.</p>