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!

speed = np.array([0.0, 83.6, 98.3, 108.5, 124.9, 141.7, 161.3, 187.3, 197.8, 217.1, 232.6, 250.1]) fvalue, pvalue = stats.f_oneway(speed[:6], speed[6:]) # Solution fvalue, pvalue = stats.f_oneway(speed[:6], speed[6:]) print(pvalue)

Questions about programming?Chat with your personal AI assistant