code: def numpy_bins(self) -> np.ndarray:
          
          if self._numpy_bins is None:
              self._numpy_bins = to_numpy_bins(self.bins)
          return self._numpy_bins
docs: Bins in the numpy format
  
          This might not be available for inconsecutive binnings.
  
          Returns
          -------
          edges: np.ndarray
              shape=(bin_count+1,)