Spaces:
Sleeping
Sleeping
Update pages/EDA.py
Browse files- pages/EDA.py +1 -5
pages/EDA.py
CHANGED
|
@@ -20,7 +20,7 @@ df = pd.read_csv("https://huggingface.co/spaces/varshitha22/Crop_Recommendation/
|
|
| 20 |
num_cols = ['Nitrogen', 'Phosphorus', 'Potassium', 'Temperature', 'Humidity', 'pH_Value', 'Rainfall']
|
| 21 |
|
| 22 |
# Title
|
| 23 |
-
st.markdown("<h2 style='text-align:
|
| 24 |
|
| 25 |
# --- Boxplot Visualization ---
|
| 26 |
st.markdown("<h3 style='text-align: left; color: #D35400;'>Outlier Detection (Boxplots)</h3>", unsafe_allow_html=True)
|
|
@@ -57,7 +57,3 @@ for col in num_cols:
|
|
| 57 |
# Display Outlier Counts
|
| 58 |
st.write("Number of Outliers Detected:")
|
| 59 |
st.write(outlier_counts)
|
| 60 |
-
|
| 61 |
-
# Display Cleaned Data
|
| 62 |
-
st.markdown("<h3 style='text-align: left; color: #AF7AC5;'>Dataset After Handling Outliers</h3>", unsafe_allow_html=True)
|
| 63 |
-
st.dataframe(df)
|
|
|
|
| 20 |
num_cols = ['Nitrogen', 'Phosphorus', 'Potassium', 'Temperature', 'Humidity', 'pH_Value', 'Rainfall']
|
| 21 |
|
| 22 |
# Title
|
| 23 |
+
st.markdown("<h2 style='text-align: left; color: #2E86C1;'>Outlier Detection and Handling</h2>", unsafe_allow_html=True)
|
| 24 |
|
| 25 |
# --- Boxplot Visualization ---
|
| 26 |
st.markdown("<h3 style='text-align: left; color: #D35400;'>Outlier Detection (Boxplots)</h3>", unsafe_allow_html=True)
|
|
|
|
| 57 |
# Display Outlier Counts
|
| 58 |
st.write("Number of Outliers Detected:")
|
| 59 |
st.write(outlier_counts)
|
|
|
|
|
|
|
|
|
|
|
|