I am using the following way to create the row headers:
header_names = ["Test Number", "result", "output_value","duration_of_test"]
csvwriter = csv.DictWriter(open(out_file, 'wb'), delimiter=',', fieldnames=header_names)
csvwriter.writeheader()
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.