binplace = np.digitize(avgs, bins)
binplace
np.where(binplace == 1)
np.where(binplace == 2)
avgs[np.where(binplace == 1)]
How to organize values in a numpy array into bins that contain a certain range of values?