Hi,
I'd like to ask if this is the appropriate method (see code below) for extracting the minimum/maximum values from a certain column in a excel file? I am querying this as I have 100k cases and it takes some time to fetch the results and as this is part of a bigger automation process it'd be great if this could be achieved faster.
#using profiles.xls template example as shipped with xlrd module.
import xlrdxls = xlrd.open_workbook(r"profiles.xls")
dataSheet = xls.sheet_by_name("PROFILEDEF")
dataCol = set([dataSheet.cell_value(row, 1) for row in range(1, dataSheet.nrows)])
minValue = min(dataCol)
maxValue = max(dataCol)
print minValue
print maxValue
Many thanks in advance.
Jignesh