In general, we will df.drop('column_name', axis=1)
to remove a column in a DataFrame.
I want to add this transformer into a Pipeline
Example:
numerical_transformer = Pipeline(steps=[('imputer', SimpleImputer(strategy='mean')),
('scaler', StandardScaler(with_mean=False))
])
How can I do it?