I am relatively new to python and trying to locate the cell that contains the value "3275" which is here, the "newELA". This value is in the top row of the spreadsheet and is a header. This is what I have been trying:
loc=("/Volumes/Project/Andes_Glacier_Inventory.xlsx")
wb = xlrd.open_workbook(loc)
sheet = wb.sheet_by_index(1)
headers = sheet.row(0)[3:]
a = np.array(sheet.row_values(1,3))
value = 501
ELA = headers[np.argmax(a * (a < value))]
print ("The ELA is", ELA.value)
changeinELA = 100
value1 = changeinELA
value2 = ELA.value
newELA = float(value1) + float(value2)
print ("The new ELA is", newELA)
b = np.where (np.array(headers) == newELA)
print (b)
The results I am getting are, which I don't even understand
(array([], dtype=int64),)