Using np.select, I am seeking to return index row of first value in df[\'price\'] less than smallest value in df1[\'price\'] above last value in df[\'averages\']. However, w