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
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
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
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):