Generation

generate functionWed, 22 Mar 2023

This code gives an error TypeError: '>' not supported between instances of 'str' and 'float' fvalue, pvalue = stats.f_oneway(p.Speed, boosted_p.Speed) Fix it!

def anova_1way(a, b): fvalue, pvalue = stats.f_oneway(a, b) if pvalue < 0.05: print("Reject Null Hypothesis - Significant differences exist between group means") else: print("Fail to Reject Null Hypothesis - No significant difference between group means") anova_1way(p.Speed, boosted_p.Speed)

Questions about programming?Chat with your personal AI assistant