How To Perform T-Test in Pandas
How To Perform T-Test in Pandas
Examples)
method score
0 A 71
1 A 72
2 A 72
3 A 75
4 A 78
#define samples
group1 = df[df['method']=='A']
group2 = df[df['method']=='B']
Ttest_indResult(statistic=-2.6034304605397938, pvalue=0.017969284594810425)
#define samples
group1 = df[df['method']=='A']
group2 = df[df['method']=='B']
Ttest_indResult(statistic=-2.603430460539794, pvalue=0.02014688617423973)
method score
0 A 71
1 A 72
2 A 72
3 A 75
4 A 78
#define samples
group1 = df[df['method']=='A']
group2 = df[df['method']=='B']
Ttest_relResult(statistic=-6.162045351967805, pvalue=0.0001662872100210469)