I have a row:
row = {'A':'valueA', 'B':'valueB', 'C':'valueC'}
Basically I want to open a new csv file and write each value in its column, e.g.
---------------------------
| A | B | C |
---------------------------
| ValueA | ValueB | ValueC |
---------------------------
I am doing this:
def OandWtonew(filename, row):
with open('Ouput1.csv', 'wt') as csvfile:
fileout = csv.writer(csvfile, delimiter=' ', quotechar='|', quoting=csv.QUOTE_MINIMAL)
fileout.writerow(row)
but the output I am getting is:
--------------------------------------------
| A | B | C |
--------------------------------------------
| 'A':'valueA' | 'B':'valueB' | 'C':'valueC'|
--------------------------------------------
All replies are much appreciated :)

csv.dictwriterand notcsv.writer