SciPy - Statistical Tests
Why does this code raise an AttributeError?
import scipy.stats as stats g1 = [3, 4, 5] g2 = [6, 7, 8] result = stats.f_oneway(g1, g2) print(result.statistic())
Why does this code raise an AttributeError?
import scipy.stats as stats g1 = [3, 4, 5] g2 = [6, 7, 8] result = stats.f_oneway(g1, g2) print(result.statistic())
f_oneway returns an object with attributes statistic and pvalue.statistic() treats it as a method, but it's an attribute.statistic is an attribute, not a method; parentheses cause error -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions