scipy stats t confidence interval code example
Example 1: t.interval scipy
confidence_interval = scipy.stats.t.interval(confidence_level, degrees_freedom, sample_mean, sample_standard_error)
Example 2: t.interval scipy
sample_standard_error = scipy.stats.sem(sample)