One Tail Two Tail

from scipy.stats import ttest_ind

ttest_ind(a,b).statistic

# Two tail
ttest_ind(a,b).pvalue/2