Spaces:
Sleeping
Sleeping
Update pages/EDA.py
Browse files- pages/EDA.py +2 -2
pages/EDA.py
CHANGED
|
@@ -470,7 +470,7 @@ st.markdown("""
|
|
| 470 |
|
| 471 |
st.markdown("<h2 style='color: #2E86C1; font-size: 23px;'> Rainfall vs. Crop</h2>", unsafe_allow_html=True)
|
| 472 |
fig, ax = plt.subplots(figsize=(5, 3)) # Reduced size
|
| 473 |
-
sns.scatterplot(data=df, x="Rainfall", y="Crop", hue="Crop", palette="rainbow", legend=False, ax=ax)
|
| 474 |
ax.set_xlabel("Rainfall (mm)", fontsize=6) # Decreased label size
|
| 475 |
ax.set_ylabel("Crop", fontsize=6) # Decreased label size
|
| 476 |
ax.set_title("Rainfall vs Crop Type", fontsize=9) # Adjusted title size
|
|
@@ -480,7 +480,7 @@ st.pyplot(fig)
|
|
| 480 |
|
| 481 |
st.markdown("<h2 style='color: #2E86C1; font-size: 23px;'> Temperature vs. Humidity</h2>", unsafe_allow_html=True)
|
| 482 |
fig, ax = plt.subplots(figsize=(5, 3)) # Reduced size
|
| 483 |
-
sns.scatterplot(data=df, x="Temperature", y="Humidity", alpha=0.6, color="blue", ax=ax)
|
| 484 |
ax.set_xlabel("Temperature (°C)", fontsize=6) # Decreased label size
|
| 485 |
ax.set_ylabel("Humidity (%)", fontsize=6) # Decreased label size
|
| 486 |
ax.set_title("Temperature vs Humidity", fontsize=9) # Adjusted title size
|
|
|
|
| 470 |
|
| 471 |
st.markdown("<h2 style='color: #2E86C1; font-size: 23px;'> Rainfall vs. Crop</h2>", unsafe_allow_html=True)
|
| 472 |
fig, ax = plt.subplots(figsize=(5, 3)) # Reduced size
|
| 473 |
+
sns.scatterplot(data=df, x="Rainfall", y="Crop", hue="Crop", palette="rainbow", legend=False, ax=ax,s=10)
|
| 474 |
ax.set_xlabel("Rainfall (mm)", fontsize=6) # Decreased label size
|
| 475 |
ax.set_ylabel("Crop", fontsize=6) # Decreased label size
|
| 476 |
ax.set_title("Rainfall vs Crop Type", fontsize=9) # Adjusted title size
|
|
|
|
| 480 |
|
| 481 |
st.markdown("<h2 style='color: #2E86C1; font-size: 23px;'> Temperature vs. Humidity</h2>", unsafe_allow_html=True)
|
| 482 |
fig, ax = plt.subplots(figsize=(5, 3)) # Reduced size
|
| 483 |
+
sns.scatterplot(data=df, x="Temperature", y="Humidity", alpha=0.6, color="blue", ax=ax,s=10)
|
| 484 |
ax.set_xlabel("Temperature (°C)", fontsize=6) # Decreased label size
|
| 485 |
ax.set_ylabel("Humidity (%)", fontsize=6) # Decreased label size
|
| 486 |
ax.set_title("Temperature vs Humidity", fontsize=9) # Adjusted title size
|