code: def fit(self, X, y=None):
          
  
          # Reset internal state before fitting
          self._reset()
          return self.partial_fit(X, y)
docs: Compute the mean and standard deviation from a dataset to use in future scaling operations.
  
          :param X: Data matrix to scale.
          :type X: numpy.ndarray, shape [n_samples, n_features]
          :param y: Passthrough for Scikit-learn ``Pipeline`` compatibility.
          :type y: None
          :return: Fitted object.
          :rtype: pyChemometrics.ChemometricsScaler