Selecting Transforms with sklearn pipelines
The purpose of the pipeline is to assemble several steps that can be
cross-validated together while setting different parameters. For this,
it enables setting parameters of the various steps using their names

Check the docs
For your requirement, you will have to create multiple pipelines, you cannot do it via single pipeline.