varshitha22 commited on
Commit
59b680c
·
verified ·
1 Parent(s): 6441464

Update pages/EDA.py

Browse files
Files changed (1) hide show
  1. pages/EDA.py +24 -0
pages/EDA.py CHANGED
@@ -57,3 +57,27 @@ for col in num_cols:
57
  # Display Outlier Counts
58
  st.write("Number of Outliers Detected:")
59
  st.write(outlier_counts)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  # Display Outlier Counts
58
  st.write("Number of Outliers Detected:")
59
  st.write(outlier_counts)
60
+
61
+ # Title with color
62
+ st.markdown("<h2 style='text-align: center; color: #2E86C1;'>Why Use the IQR Method?</h2>", unsafe_allow_html=True)
63
+
64
+ # Explanation with bullet points
65
+ st.markdown("""
66
+ <style>
67
+ .why-text {
68
+ font-size: 18px;
69
+ color: #333;
70
+ background-color: #f9f9f9;
71
+ padding: 10px;
72
+ border-radius: 10px;
73
+ }
74
+ </style>
75
+ <div class='why-text'>
76
+ 1. **Other methods like mean and standard deviation can be heavily influenced by extreme values.**<br><br>
77
+ 2. **IQR focuses only on the middle 50% of data (between Q1 and Q3), making it less affected by extreme values.**<br><br>
78
+ 3.**Other methods may remove outliers entirely, leading to data loss.**<br><br>
79
+ 4. **Instead of dropping rows, the IQR method replaces outliers with the mean of the column, keeping the dataset size the same.**<br><br>
80
+ 5. **This is useful when we don’t want to lose important information but still need to control extreme values.**
81
+ </div>
82
+ """, unsafe_allow_html=True)
83
+