In Python I'm using SciPy for a one sample t test:
from scipy import stats
one_sample_data = [177.3, 182.7, 169.6, 176.3, 180.3, 179.4, 178.5, 177.2, 181.8, 176.5]
one_sample = stats.ttest_1samp(one_sample_data, 175.3)
This is a two tailed test, but I can't see an option in scipy.stats.ttest_1samp to do a one tailed test.
In R if I was using t.test() I would simply set alternative="less" (or "greater"). What's the easiest way to do this in Python?