CCockrum commited on
Commit
928dfb7
·
verified ·
1 Parent(s): 3247eef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -914,7 +914,7 @@ class DataAnalysisChatbot:
914
  stat, p_value = stats.shapiro(data) if len(data) < 5000 else stats.normaltest(data)
915
 
916
  result += f"Normality Test for '{col}':\n"
917
- result += f" Test used: {'Shapiro-Wilk' if len(data) < 5000 else 'D\'Agostino\'s K²'}\n"
918
  result += f" Statistic: {stat:.4f}\n"
919
  result += f" p-value: {p_value:.4f}\n"
920
  result += f" Interpretation: The data is {'not ' if p_value < 0.05 else ''}normally distributed (95% confidence).\n\n"
 
914
  stat, p_value = stats.shapiro(data) if len(data) < 5000 else stats.normaltest(data)
915
 
916
  result += f"Normality Test for '{col}':\n"
917
+ result += f" Test used: {'Shapiro-Wilk' if len(data) < 5000 else \"D'Agostino's K²\"}\n"
918
  result += f" Statistic: {stat:.4f}\n"
919
  result += f" p-value: {p_value:.4f}\n"
920
  result += f" Interpretation: The data is {'not ' if p_value < 0.05 else ''}normally distributed (95% confidence).\n\n"