A Pipeline chains preprocessing steps and a final model into a single estimator. It guarantees that each transformation is fitted on the training set only, including at each cross-validation fold, which prevents data leakage and simplifies deployment.
Example
pipe = Pipeline([('scale', StandardScaler()), ('model', LogisticRegression())])