Source code for autoflow.feature_engineer.operate.drop_all

import numpy as np
from sklearn.base import TransformerMixin, BaseEstimator

__all__=["DropAll"]

[docs]class DropAll(TransformerMixin, BaseEstimator):
[docs] def fit(self,X=None,y=None): return self
[docs] def transform(self, X, y=None): return np.zeros([X.shape[0], 0])
[docs] def fit_transform(self, X, y=None, **fit_params): self.fit(X,y) return self.transform(X,y)