Here's a brief tutorial on how to build a machine learning pipeline with sklearn's API. I use the Pipeline() class, as well as ColumnTransformer(), to preprocess and fit a model to the penguins dataset from Allison Horst's penguins dataset.
jmarkowi/build_a_pipeline
Brief tutorial on how to build a machine learning pipeline with sklearn's API
Jupyter Notebook