I am trying to do Kruskal Wallis test in python that not only gives me the H statistics and the p value, but also the effect size.
I have tried scipy's stats.kruskal() function, but only the H and p were returned. with a pandas dataframe, so I converted the two columns of the dataframe (in the future I may need more than two) into arrays and ran scipy.stats.kruskal(L_arr,E_arr)
I first converted the two columns of interest from a pandas dataframe to two arrays L_arr and E_arr. Then I ran:
import scipy.stats as stats
stats.kruskal(L_arr, E_arr)
The result I got: KruskalResult(statistic=1.2752179327521276, pvalue=0.2587900768563777) I wish there is some way for me to get the effect size as well?