I'm trying to retrieve the column titles of a recarray, and running into considerable trouble. If I read in a .csv file using pylab's csv2rec function, I am able to access column titles in the following manner:
from pylab import csv2rec
x = csv2rec(file.csv)
x.column1
x.column2
Where 'column1' is the title of the first column, and it would return the rest of the values in the column. But, I am reading in a .csv file where I don't know what all of the values of the column titles are, and I want to be able to access them (either loop through, or set a list). This seems like it should be simple. Any ideas?