def _ttest_finish(df, t):
 prob = (distributions.t.sf(np.abs(t), df) * 2)
 if (t.ndim == 0):
  t = t[()]
 return (t, prob)

def _ttest_finish ( df , t ) : prob = ( distributions . t . sf ( np . abs ( t ) , df ) * 2 ) if ( t . ndim == 0 ) : t = t [ ( ) ] return ( t , prob )
common code between all 3 t-test functions .