def __init__(self, bounds):
        """
        Create set of bins with the bin boundaries for bin[i] being bounds[i] to
        to bounds[i + 1]. The list `bounds` must be monotonically increasing.
        """
        self.bounds = bounds

        self.min_value = bounds[0]
        self.max_value = bounds[-1]

        self.num_bins = len(bounds) - 1
        self.bins = [[] for _ in range(self.num_bins)]
def __init__ ( self , bounds ) : self . bounds = bounds self . min_value = bounds [ 0 ] self . max_value = bounds [ - 1 ] self . num_bins = len ( bounds ) - 1 self . bins = [ [ ] for _ in range ( self . num_bins ) ]
Create set of bins with the bin boundaries for bin[i] being bounds[i] to
        to bounds[i + 1]. The list `bounds` must be monotonically increasing.