def transform(self, X, y=None):
        check_is_fitted(self, ['mean_', 'components_'], all_or_any=all)

        X = check_array(X)
        if self.mean_ is not None:
            X = X - self.mean_
        X_transformed = fast_dot(X, self.components_.T)
        if self.whiten:
            X_transformed /= np.sqrt(self.explained_variance_)
        return X_transformed
Disposes of the contents of an editor.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/decomposition/base.py/_BasePCA.transform--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/wx/history_editor.py/_HistoryEditor.dispose