This question has been put on hold and I don't understand the reasons that motivated the decision.
The input and output have been well defined and the OP isn't asking broad questions such as "What is functional programming?".
The question looks clear and reasonably scoped to me. OP knows how to process the data, they're simply asking what a functional version of a data processing pipeline would look like.
I voted to reopen this question. Was I wrong?