I need to write a complicated function that will evaluate a new column for a DataFrame in pandas.
This function will have to use data from multiple (more than 10) columns of this DataFrame.
It won't fit into a lambda, to plug it in easily to the apply() function.
I don't want to write a function that takes more than 10 arguments and plug it into apply(), because it would hurt readability of my code.
I would rather not use for loop to iterate over rows, as it has poor performance.
Is there a clever solution to this problem?