結果 : python find index of value above threshold