Applying a function to each row of a dataframe and storing outputs in the same or a new dataframe

Usersyed
Usersyed Partner, Registered Posts: 29 Partner

I have a dataframe in which I want to apply a function to every row of the dataframe. This function is user defined and returns multiple values. I tried returning the values as a series and saving the values in new columns of the same dataframe but I end up getting an error. Any idea how to go about this?

This approach works fine as a standalone python script but it is failing when I put it in Dataiku as a recipe

Tagged:

Answers

Setup Info
    Tags
      Help me…