I'm wanting to read in a csv and save the first two columns as variables. This is what I have so far:
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
I can print out columns, but would like to have it so I can have different variables for column 'arrays'.
For example, I am wanting to store the first column as 'frames' and the second as 'peaks', so to have it so, for example, frames[2] holds the second value in the first column and I can reference it.
Thank you.