def transform ( self , df ) : for name , function in self . outputs : df [ name ] = function ( df )
python apply function to data frame
Transforms a DataFrame in place . Computes all outputs of the DataFrame .
def transform(self, df):
        """
        Transforms a DataFrame in place. Computes all outputs of the DataFrame.

        Args:
            df (pandas.DataFrame): DataFrame to transform.
        """
        for name, function in self.outputs:
            df[name] = function(df)