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

Update pages/EDA.py

Browse files
Files changed (1) hide show
  1. pages/EDA.py +7 -7
pages/EDA.py CHANGED
@@ -61,13 +61,13 @@ st.write(outlier_counts)
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,10 +75,10 @@ st.markdown("""
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)
 
61
  import streamlit as st
62
 
63
  # Title with color
64
+ st.markdown("<h2 style='text-align: left; color: #2E86C1;font-size: 18px;'>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: 16px; /* 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)