code: def clip(self, X):
          
          X = np.asarray(X)
          if self.min_value is not None:
              X[X < self.min_value] = self.min_value
          if self.max_value is not None:
              X[X > self.max_value] = self.max_value
          return X
docs: Clip values to fall within any global or column-wise min/max constraints