title: Python: reading in a csv file and saving columns as variables
body: <p>I'm wanting to read in a csv and save the first two columns as variables.
  This is what I have so far:</p>
  
  <pre><code>import sys, os, subprocess, shutil, time, string #these are for other things in the program :)
  import csv
  
  csvfile = list(csv.reader(open('test.csv')))   #read in the csv file
  
  csv_dic = []
  
  for row in csvfile:
          csv_dic.append(row);
  
  for row in csv_dic:
         for column in row:
               print column, "***",   #I can print out the column
         print
  </code></pre>
  
  <p>I can print out columns, but would like to have it so I can have different variables for column 'arrays'.</p>
  
  <p>For example, I am wanting to store the first column as 'frames' and the second as 'peaks', so to <strong>have it so, for example, frames[2] holds the second value in the first column</strong> and I can reference it.</p>
  
  <p>Thank you.</p>