[Tutor] Implicit passing of argument select functions being called

Peter Otten __peter__ at web.de
Thu Jul 14 03:30:33 EDT 2022


On 10/07/2022 08:51, alexander-rodis wrote:

> I'm working on a project, where accessibility is very important as it's
> addressed to non - specialists, who may even have no knowledge of coding
> of Python.
>
> In a specific section, I've come up with this API to make data
> transformation pipeline:
>
> make_pipeline(
>
>      load_data(fpath,...),
>
>      transform1(arg1,arg2,....),
>
>      ....,
>
>      transform2(arg1,arg2,....),

Frankly, I have no idea what your actual scenario might be.

If you are still interested in a comment it would help if you provide a
more concrete scenario with two or three actual transformations working
together on a few rows of toy data, with a filter and one or two globals
that you are hoping to avoid.

Actual code is far easier to reshuffle and improve than an abstraction
with overgeneralized function names and signatures where you cannot tell
the necessary elements from the artifacts of the generalization.


More information about the Tutor mailing list