I understand that one can chain several estimators that implement the transform method to transform X (the feature set) in sklearn.pipeline. However I have a use case where
No, pipelines will always pass y through unchanged. Do the transformation outside the pipeline.
y
(This is a known design flaw in scikit-learn, but it's never been pressing enough to change or extend the API.)