Yashvj123 commited on
Commit
b198972
Β·
verified Β·
1 Parent(s): 7e1e2b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +66 -0
app.py CHANGED
@@ -119,6 +119,72 @@ elif st.session_state.current_page == "Problem Statement":
119
  if st.button("πŸ”™ Go Back to Model Report"):
120
  switch_page("Model Report")
121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  # Hands-on Model Page
123
  elif st.session_state.current_page == "Hands-on Model":
124
  st.title("Hands-on Model")
 
119
  if st.button("πŸ”™ Go Back to Model Report"):
120
  switch_page("Model Report")
121
 
122
+ elif st.session_state.current_page == "Data Collection":
123
+ st.markdown("<h1 class='title'>Data Collection</h1>", unsafe_allow_html=True)
124
+
125
+ st.markdown("""
126
+ <h5 style="text-align: center; margin-top: 20px;">
127
+ The dataset used in this project is sourced from Kaggle, containing information on life expectancy across
128
+ different countries along with various health, economic, and demographic factors.
129
+ </h5>
130
+ """, unsafe_allow_html=True)
131
+
132
+ st.markdown("<br>", unsafe_allow_html=True)
133
+
134
+ st.markdown("""
135
+ <h5 style="text-align: center; margin-top: 10px;">
136
+ πŸ“Œ <a href="https://www.kaggle.com/datasets/kumarajarshi/life-expectancy-who" target="_blank" style="font-weight: bold; color: #007BFF; text-decoration: none;">
137
+ Click here to access the dataset on Kaggle</a>
138
+ </h5>
139
+ """, unsafe_allow_html=True)
140
+
141
+ st.markdown("<br>", unsafe_allow_html=True)
142
+
143
+ st.markdown("<h2 class='subtitle' style='text-align: center; margin-top: 20px;'>Dataset Overview</h2>", unsafe_allow_html=True)
144
+
145
+ st.markdown("""
146
+ <h5 style="text-align: center; margin-top: 15px; margin-bottom: 20px;">
147
+ The dataset consists of <b>2938 rows</b> and <b>22 columns</b>, capturing crucial indicators such as life expectancy,
148
+ mortality rates, GDP, schooling, immunization rates, and more. Below is a summary of the dataset features:
149
+ </h5>
150
+ """, unsafe_allow_html=True)
151
+
152
+ st.markdown("<br>", unsafe_allow_html=True)
153
+
154
+ data_info = """
155
+ <div style="text-align: center; font-size: 16px; background-color: #F5F5F5; padding: 15px; border-radius: 10px;">
156
+ <b>Columns in the dataset:</b><br><br>
157
+ 🌍 <b>Country:</b> Name of the country (Categorical)<br>
158
+ πŸ“… <b>Year:</b> Year of observation (Numerical)<br>
159
+ πŸ”΅ <b>Status:</b> Developing or Developed country (Categorical)<br>
160
+ ⏳ <b>Life Expectancy:</b> Average age a person is expected to live (Numerical)<br>
161
+ ⚰️ <b>Adult Mortality:</b> Probability of dying between 15-60 years per 1000 population (Numerical)<br>
162
+ πŸ‘Ά <b>Infant Deaths:</b> Number of infant deaths per 1000 live births (Numerical)<br>
163
+ 🍷 <b>Alcohol:</b> Alcohol consumption per capita (Numerical)<br>
164
+ πŸ’² <b>Percentage Expenditure:</b> Government expenditure on health as a percentage of GDP (Numerical)<br>
165
+ πŸ’‰ <b>Hepatitis B:</b> Immunization coverage for Hepatitis B (Numerical)<br>
166
+ πŸ§’ <b>Measles:</b> Number of reported measles cases per year (Numerical)<br>
167
+ βš–οΈ <b>BMI:</b> Average Body Mass Index of the population (Numerical)<br>
168
+ ⚰️ <b>Under-five Deaths:</b> Number of deaths under the age of five per 1000 live births (Numerical)<br>
169
+ πŸ’‰ <b>Polio:</b> Immunization coverage for Polio (Numerical)<br>
170
+ πŸ’° <b>Total Expenditure:</b> Total health expenditure as a percentage of GDP (Numerical)<br>
171
+ πŸ’‰ <b>Diphtheria:</b> Immunization coverage for Diphtheria (Numerical)<br>
172
+ 🦠 <b>HIV/AIDS:</b> Death rate due to HIV/AIDS per 100,000 people (Numerical)<br>
173
+ πŸ’° <b>GDP:</b> Gross Domestic Product per capita (Numerical)<br>
174
+ πŸ‘₯ <b>Population:</b> Total population of the country (Numerical)<br>
175
+ πŸ“‰ <b>Thinness 1-19 Years:</b> Percentage of thin individuals aged 1-19 years (Numerical)<br>
176
+ πŸ“‰ <b>Thinness 5-9 Years:</b> Percentage of thin individuals aged 5-9 years (Numerical)<br>
177
+ πŸ“Š <b>Income Composition:</b> Human development index based on income composition (Numerical)<br>
178
+ πŸŽ“ <b>Schooling:</b> Average number of years of schooling (Numerical)<br>
179
+ </div>
180
+ """
181
+
182
+ st.markdown(data_info, unsafe_allow_html=True)
183
+
184
+ if st.button("πŸ”™ Go Back to Model Report"):
185
+ switch_page("Model Report")
186
+
187
+
188
  # Hands-on Model Page
189
  elif st.session_state.current_page == "Hands-on Model":
190
  st.title("Hands-on Model")