Create pages/2 Data Understanding.py
Browse files
pages/2 Data Understanding.py
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
# Page Title
|
4 |
+
st.title("π Data Collection & Understanding")
|
5 |
+
|
6 |
+
# Data Collection Section
|
7 |
+
st.markdown("""
|
8 |
+
### π₯ Data Collection:
|
9 |
+
The dataset used in this project was collected from a student mental health survey, containing information on academic, psychological, and lifestyle factors that influence mental well-being.
|
10 |
+
|
11 |
+
#### Dataset Features:
|
12 |
+
- **Gender**: Male/Female
|
13 |
+
- **Age**: Age of the student
|
14 |
+
- **Academic Pressure**: Stress level due to academic workload
|
15 |
+
- **Study Satisfaction**: Self-reported satisfaction with study experience
|
16 |
+
- **Sleep Duration**: Average daily sleep duration
|
17 |
+
- **Dietary Habits**: Quality of diet (Balanced or Unbalanced)
|
18 |
+
- **Financial Stress**: Stress level due to financial issues
|
19 |
+
- **CGPA**: Academic performance
|
20 |
+
- **Depression**: π― Target variable indicating depression status (Yes/No)
|
21 |
+
""")
|
22 |
+
|
23 |
+
# Key Understanding Section
|
24 |
+
st.markdown("""
|
25 |
+
### π Key Understanding:
|
26 |
+
- **Data Type**: Combination of numerical (e.g., Age, CGPA) and categorical variables (e.g., Gender, Sleep Duration).
|
27 |
+
- **Data Cleaning**: Columns such as `Profession`, `City`, and `Job Satisfaction` were dropped due to irrelevance or redundancy.
|
28 |
+
- **Target Variable**: `Depression` (Binary classification - Yes or No)
|
29 |
+
|
30 |
+
The dataset is now ready for further exploration through **Exploratory Data Analysis (EDA)**.
|
31 |
+
""")
|
32 |
+
|
33 |
+
if st.button("Next >>"):
|
34 |
+
st.switch_page(r"pages\3 EDA.py")
|
35 |
+
|
36 |
+
if st.button("<< Back"):
|
37 |
+
st.switch_page(r"pages\1 Problem Statement.py")
|