def transform(self, data):
        # 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
standardize the data using the stored transformation
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tools/transform_model.py/StandardizeTransform.transform