print(('H-statistic:', H))
print(('P-Value:', pval))
if pval < 0.05:
    print('Reject NULL hypothesis - Significant differences exist between groups.')
if pval > 0.05:
    pass
Input format for Kruskal-Wallis test in Python