I'm using this function to read in a csv file but I want to convert it from strings to floats. I'm not sure where to insert. When I try I usually get an error that ' float' object has no attribute 'getitem'
def getColumn(filename, column):
results = csv.reader(open(filename), delimiter=',')
next(results, None)
return [result[column] for result in results]