def transform(self, data):
        """standardize the data using the stored transformation

        """
        # could use scipy.stats.zscore instead
        if self.mean is None:
            return np.asarray(data) % self.scale
        else:
            return (np.asarray(data) - self.mean) / self.scale
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tools/transform_model.py/StandardizeTransform.transform/operator `/` -> `%`