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]
ot;) > #print reader > #print cname > col_index = next(reader).index(maxcname) > #print col_index > highest = max(rec[col_index] for rec in reader) > print highest > > col_max(str("Server Latency")) > col_max(str("Cl

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

2011-07-07 Thread prakash jp
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. *Alternate methods would be highly appreciated ** minimum.py*: import csv filename = "testLog_4.csv" f = open(filename) def col_min(mincname):