varshitha22 commited on
Commit
95cd3c9
·
verified ·
1 Parent(s): 2947df6

Update pages/EDA.py

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