Spaces:
Sleeping
Sleeping
Update pages/EDA.py
Browse files- pages/EDA.py +12 -1
pages/EDA.py
CHANGED
|
@@ -118,7 +118,18 @@ def plot_feature(feature, title):
|
|
| 118 |
axes[1].set_title(f"Distribution of {feature}")
|
| 119 |
|
| 120 |
st.pyplot(fig)
|
| 121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
|
| 123 |
|
| 124 |
|
|
|
|
| 118 |
axes[1].set_title(f"Distribution of {feature}")
|
| 119 |
|
| 120 |
st.pyplot(fig)
|
| 121 |
+
# Display selected plot
|
| 122 |
+
feature_mapping = {
|
| 123 |
+
"Nitrogen Requirement per Crop": "Nitrogen",
|
| 124 |
+
"Phosphorus Requirement per Crop": "Phosphorus",
|
| 125 |
+
"Potassium Requirement per Crop": "Potassium",
|
| 126 |
+
"Temperature Distribution per Crop": "Temperature",
|
| 127 |
+
"Humidity Distribution per Crop": "Humidity",
|
| 128 |
+
"pH Value Distribution per Crop": "pH_Value",
|
| 129 |
+
"Rainfall Distribution per Crop": "Rainfall",
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
plot_feature(feature_mapping[viz_option], viz_option)
|
| 133 |
|
| 134 |
|
| 135 |
|