def get_bins(data):
    bins = np.unique(data)
    return np.append(bins, max(bins) + 1)
Return bin edges for all unique values in data.
dataset/ETHPy150Open cgarrard/osgeopy-code/Chapter11/listing11_9.py/get_bins