Skip to content Skip to sidebar Skip to footer

Function To Run Anova And Give F Stat Values As The Output

The function im trying to write would take the dataframe provided and calculate the F statistic values and provide those as the output. Data Format Final Color Strength Fabric

Solution 1:

When you use .apply(), the dataframe or series is passed as an argument to the function you call. The documentation explains it more. In order to fix this, instead of:

Final.apply(regression)

You can simply call regression() like this:

m_p_values = regression()

And now the variable m_p_values contains the return value of regression().

Post a Comment for "Function To Run Anova And Give F Stat Values As The Output"