1/3
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
import pandas as pd
from scipy.stats import ttest_ind
month_1='January'
month_2=’February’
sales_month_1=df[df[‘Month’]==month_1][‘Sales’]
sales_month_2=df[df[‘Month’]==month_2][‘Sales’]
print(f"T-statistic: {t_stat}, p-value: {p_value}")
if p_value<0.05:
print(“There is a significant difference in sales between the two months.”)
else:
print(“There is no significant difference in sales between the two months.”)