i want to create an equation by iterating over the rows of a dataframe by using the the values of the columns as their powers, in a way that the python function returns the func