code: def bounds(self, axis=0):
          
          if not 0 <= axis < self.GetDimension():
              raise ValueError(
                  "axis must be a non-negative integer less than "
                  "the dimensionality of the histogram")
          if axis == 0:
              return self.xedges(1), self.xedges(-2)
          if axis == 1:
              return self.yedges(1), self.yedges(-2)
          if axis == 2:
              return self.zedges(1), self.zedges(-2)
          raise TypeError("axis must be an integer")
docs: Get the lower and upper bounds of the binning along an axis