A pipeline-based approach to data processing necessitates a functional programming approach. After all, pipelines are compositions of functions, and loops and variable assignment do not work well with pipelines . You are not precluded from imperative programming, but you need to wrap it in functions.
I will not describe ...