Anova, F Test, Analysis Of Variance, Data Analysis, Anova Python.
= [] for i in df_students.Country.unique(): group_mean = df_students[df_students.Country == i].Results.mean() sum_sqr = sum(list(map(lambda x: (x-group_mean)**2, df_students[df_students.Country == i].Results))) sum_sqr_diff.append(sum_sqr) print(i,": "+str(sum_sqr)) SSw = sum(sum_sqr_diff)