saherPervaiz commited on
Commit
f7b98c8
Β·
verified Β·
1 Parent(s): 063e81f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -18
app.py CHANGED
@@ -50,24 +50,6 @@ def plot_graphs(data):
50
  st.markdown("### πŸ“Š Data Visualizations")
51
  st.write("Explore key insights through visualizations.")
52
 
53
- # Histogram for depression
54
- st.markdown("#### Histogram of Stress Levels")
55
- fig, ax = plt.subplots(figsize=(4, 2))
56
- ax.hist(data['stress_level'], bins=20, color='skyblue', edgecolor='black')
57
- ax.set_title("Histogram of Stress Levels")
58
- ax.set_xlabel("Stress Level")
59
- ax.set_ylabel("Frequency")
60
- st.pyplot(fig)
61
-
62
- # Scatter plot for anxiety vs. depression
63
- st.markdown("#### Scatter Plot: Anxiety vs Depression")
64
- fig, ax = plt.subplots(figsize=(4, 2))
65
- sns.scatterplot(x=data['anxiety_level'], y=data['depression'], ax=ax, color='blue')
66
- ax.set_title("Anxiety Level vs Depression")
67
- ax.set_xlabel("Anxiety Level")
68
- ax.set_ylabel("Depression")
69
- st.pyplot(fig)
70
-
71
  # Correlation heatmap
72
  st.markdown("#### Correlation Heatmap")
73
  fig, ax = plt.subplots(figsize=(10, 8))
 
50
  st.markdown("### πŸ“Š Data Visualizations")
51
  st.write("Explore key insights through visualizations.")
52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  # Correlation heatmap
54
  st.markdown("#### Correlation Heatmap")
55
  fig, ax = plt.subplots(figsize=(10, 8))