

def get_bins(data):
    'Return bin edges for all unique values in data.'
    bins = np.unique(data)
    return np.append(bins, (max(bins) + 1))

dataset/ETHPy150Open cgarrard/osgeopy-code/Chapter11/listing11_9.py get_bins/original