def ttest_ind(a, b):
    x1, x2 = mean(a), mean(b)
    v1, v2 = stdev(a)**2, stdev(b)**2
    n1, n2 = len(a), len(b)
    df = n1+n2-2
    try:
        svar = ((n1-1)*v1+(n2-1)*v2)/float(df)
    except ZeroDivisionError:
        return float('nan'), float('nan')
    try:
        t = (x1-x2)/sqrt(svar*(1.0/n1 + 1.0/n2))
    except ZeroDivisionError:
        t = 1.0
    prob = betai(0.5*df,0.5,df/(df+t*t))
    return t, prob
Specify whether to record warnings and if an alternative module
dataset/ETHPy150Open Miserlou/django-easy-split/easy_split/stats.py/ttest_ind--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/warnings.py/catch_warnings.__init__