Re: find max and min values from a column of a csv file

2011-07-19 Thread prakash jp
Thanks for the suggestions. Felt the thread could be of help on consolidating the solution. *Max Value from a csv column:* import numpy data1 = numpy.genfromtxt("data.csv",dtype='float',delimiter = ',',skiprows=1, skip_header=0, skip_footer=0, usecols=11,usemask=True) #pri

Re: find max and min values from a column of a csv file

2011-07-07 Thread Peter Otten
prakash jp wrote: > Could any one help to get max and min values from a specified column of a > csv file. The* csv file is large* and hence the below code did go bad. > *Alternate > methods would be highly appreciated > ** > minimum.py*: > import csv > filename = "testLog_4.csv" > f = open(filenam

Re: find max and min values from a column of a csv file

2011-07-07 Thread John [H2O]
I think you would benefit from reading the data into a numpy array first, then using numpy min, max functions. prakash jp wrote: > > Hi All , > > Could any one help to get max and min values from a specified column of a > csv file. The* csv file is large* and hence the below code did go bad.