image_output_1.png
from scipy.stats import t

import numpy as np

import numpy as np # linear algebra

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df = pd.read_excel('/kaggle/input/iedata/iedatason.xlsx', sheet_name='Form Yanıtları 1')

mean = np.mean(df['Result'])
std = np.std(df['Result'])

import numpy as np
from scipy.stats import t
conf_level = 0.95
n = len(df['Result'])
df = n - 1
t_stat = t.ppf((1 + conf_level) / 2, df)
margin_of_error = t_stat * std / np.sqrt(n)
lower = mean - margin_of_error
upper = mean + margin_of_error
print('The 95% confidence interval for the mean is: ({:.2f}, {:.2f})'.format(lower, upper))