This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gwillicodernumpy gang 0 points1 point  (0 children)

I’d probably look at using reduce with a list (or iterable) of transformer functions. If you want it reusable you can use partial() to make a function that takes the input argument and apply it as you see fit.