confidence_level = 0.95
degrees_freedom = sample.size - 1
confidence_interval = scipy.stats.t.interval(confidence_level, degrees_freedom, sample_mean, sample_standard_error)
sample_mean = np.mean(sample)
sample_standard_error = scipy.stats.sem(sample)