title: how to choose which column to write in (.csv) in python
body: <pre><code>import csv
  
  f = csv.reader(open('lmt.csv','r'))         # open input file for reading
  Date, Open, Hihh, mLow, Close, Volume = zip(*f)    #s plit it into separate columns
  
  ofile = open("MYFILEnew1.csv", "wb")            # output csv file
  c = csv.writer(ofile)
  
  item = Date   
  item2 = Volume
  rows = zip(item, item)
  i = 0
  for row in item2:
      print row
      writer = csv.writer(ofile, delimiter='\t')
      writer.writerow([row])
  
  ofile.close() 
  </code></pre>
  
  <p>Above is what I have produced so far.</p>
  
  <p>As you can see in the 3rd line, I have extracted 6 columns from a spreadsheet.
  I want to create a .csv file under the name of <code>MYFILEnew1.csv</code> which only has two columns, <code>Date</code> and <code>Volume</code>.</p>
  
  <p>What I have above creates a .csv that only writes <code>Volume</code> column into the first column of the new .csv file.
  How would you go about placing <code>Date</code> into the second column?</p>
  
  <p>For example</p>
  
  <pre><code>Date       Open   High      Low     Close    Volume
  17-Feb-16   210   212.97    209.1   212.74  1237731
  </code></pre>
  
  <p>is what i have. and Id like to produce a new csv file such that it has</p>
  
  <pre><code>Date           Volume
  17-Feb-16      1237731
  </code></pre>