LakshmiHarika commited on
Commit
81dd206
·
verified ·
1 Parent(s): 21ccfde

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +26 -2
pages/Data Collection.py CHANGED
@@ -66,10 +66,11 @@ data_type = st.radio(
66
  ("Structured Data", "Unstructured Data", "Semi-Structured Data")
67
  )
68
 
69
- # Ensure session state for Explore Excel is initialized
70
  if "explore_excel" not in st.session_state:
71
  st.session_state.explore_excel = False
72
 
 
73
  if not st.session_state.explore_excel:
74
  if data_type == "Structured Data":
75
  st.markdown("""
@@ -136,7 +137,7 @@ if not st.session_state.explore_excel:
136
  if st.button("Explore Excel"):
137
  st.session_state.explore_excel = True
138
 
139
- # Excel Content
140
  if st.session_state.explore_excel:
141
  st.markdown("""
142
  <div style="text-align: left; margin-top: 20px;">
@@ -149,6 +150,18 @@ if st.session_state.explore_excel:
149
  - Tabular data representation.
150
  - Complex computations using formulas.
151
  - Data visualization with charts and graphs.
 
 
 
 
 
 
 
 
 
 
 
 
152
  """)
153
 
154
  # Add Excel file uploader and display content
@@ -161,6 +174,17 @@ if st.session_state.explore_excel:
161
  except Exception as e:
162
  st.error("An error occurred while reading the file. Please ensure it is a valid Excel file.")
163
 
 
 
 
 
 
 
 
 
 
 
 
164
  # Add a "Go Back" button
165
  if st.button("Go Back"):
166
  st.session_state.explore_excel = False
 
66
  ("Structured Data", "Unstructured Data", "Semi-Structured Data")
67
  )
68
 
69
+ # Ensure session state is initialized
70
  if "explore_excel" not in st.session_state:
71
  st.session_state.explore_excel = False
72
 
73
+ # Main Structured Data Content
74
  if not st.session_state.explore_excel:
75
  if data_type == "Structured Data":
76
  st.markdown("""
 
137
  if st.button("Explore Excel"):
138
  st.session_state.explore_excel = True
139
 
140
+ # Excel Content Page
141
  if st.session_state.explore_excel:
142
  st.markdown("""
143
  <div style="text-align: left; margin-top: 20px;">
 
150
  - Tabular data representation.
151
  - Complex computations using formulas.
152
  - Data visualization with charts and graphs.
153
+ - Seamless integration with other software.
154
+ """)
155
+
156
+ st.markdown("""
157
+ <div style="text-align: left; margin-top: 20px;">
158
+ <h4 style="color: #5b2c6f;">Why Learn Excel?</h4>
159
+ </div>
160
+ """, unsafe_allow_html=True)
161
+ st.write("""
162
+ - **Widely Used:** Excel is a powerful tool used across industries.
163
+ - **Versatile:** It supports data entry, visualization, and complex calculations.
164
+ - **Easy to Learn:** It has a user-friendly interface and a wealth of learning resources.
165
  """)
166
 
167
  # Add Excel file uploader and display content
 
174
  except Exception as e:
175
  st.error("An error occurred while reading the file. Please ensure it is a valid Excel file.")
176
 
177
+ st.markdown("""
178
+ <div style="text-align: left; margin-top: 20px;">
179
+ <h4 style="color: #5b2c6f;">Tips for Using Excel Effectively:</h4>
180
+ </div>
181
+ """, unsafe_allow_html=True)
182
+ st.write("""
183
+ - Use built-in functions like SUM, AVERAGE, and VLOOKUP to save time.
184
+ - Utilize conditional formatting for better data visualization.
185
+ - Leverage pivot tables to summarize and analyze large datasets.
186
+ """)
187
+
188
  # Add a "Go Back" button
189
  if st.button("Go Back"):
190
  st.session_state.explore_excel = False