I'm struggling with following problem:
I'm building a pipeline in a research notebook, where I'm calculating "net_working_capital" based on multiple morningstar fundamentals.
At the end, there should be a column with 0, if net_working_capital < 0, otherwise with the value of net_working_capital.
I know how to deal with it outside of the pipeline with pandas, but how can I do this within the pipeline (maybe with a custom factor)
max(0, net_working_capital) is not working.
Any help is highly appreciated.
THX & BR