hari3485 commited on
Commit
7906df1
Β·
verified Β·
1 Parent(s): 4929e2b

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +26 -26
pages/Data Collection.py CHANGED
@@ -1257,6 +1257,32 @@ def main_page():
1257
  st.header("πŸ“‚ Types of Data")
1258
  st.write("Data is divided into three types based on how it is organized: **Structured Data**, **Semi-Structured Data**, and **Unstructured Data**.")
1259
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1260
  # Structured Data
1261
  st.subheader("1️⃣ Structured Data πŸ—‚οΈ")
1262
  st.write("""
@@ -1292,32 +1318,6 @@ def main_page():
1292
  st.write("Understanding the types of data helps us decide how to use it. Structured data is like a neat file cabinet, semi-structured is like a stack of papers with labels, and unstructured is like a box of random items.")
1293
 
1294
 
1295
- data_type = st.radio("Select Data Type:", ["Structured", "Semi-Structured", "Unstructured"])
1296
-
1297
- if data_type == "Structured":
1298
- if st.button("Excel"):
1299
- st.session_state['page'] = "excel"
1300
-
1301
- elif data_type == "Semi-Structured":
1302
- st.write("Semi-Structured Data includes formats like CSV, JSON, XML, and HTML.")
1303
-
1304
- if st.button("CSV"):
1305
- st.session_state['page'] = "csv"
1306
- if st.button("JSON"):
1307
- st.session_state['page'] = "json"
1308
- if st.button("XML"):
1309
- st.session_state['page'] = "xml"
1310
- if st.button("HTML"):
1311
- st.session_state['page'] = "html"
1312
-
1313
- elif data_type == "Unstructured":
1314
- st.write("Unstructured Data includes formats like Images and Videos.")
1315
-
1316
- if st.button("Image"):
1317
- st.session_state['page'] = "image"
1318
- if st.button("Video"):
1319
- st.session_state['page'] = "video"
1320
-
1321
  # Initialize session state
1322
  if 'page' not in st.session_state:
1323
  st.session_state['page'] = "home"
 
1257
  st.header("πŸ“‚ Types of Data")
1258
  st.write("Data is divided into three types based on how it is organized: **Structured Data**, **Semi-Structured Data**, and **Unstructured Data**.")
1259
 
1260
+ data_type = st.radio("Select Data Type:", ["Structured", "Semi-Structured", "Unstructured"])
1261
+
1262
+ if data_type == "Structured":
1263
+ if st.button("Excel"):
1264
+ st.session_state['page'] = "excel"
1265
+
1266
+ elif data_type == "Semi-Structured":
1267
+ st.write("Semi-Structured Data includes formats like CSV, JSON, XML, and HTML.")
1268
+
1269
+ if st.button("CSV"):
1270
+ st.session_state['page'] = "csv"
1271
+ if st.button("JSON"):
1272
+ st.session_state['page'] = "json"
1273
+ if st.button("XML"):
1274
+ st.session_state['page'] = "xml"
1275
+ if st.button("HTML"):
1276
+ st.session_state['page'] = "html"
1277
+
1278
+ elif data_type == "Unstructured":
1279
+ st.write("Unstructured Data includes formats like Images and Videos.")
1280
+
1281
+ if st.button("Image"):
1282
+ st.session_state['page'] = "image"
1283
+ if st.button("Video"):
1284
+ st.session_state['page'] = "video"
1285
+
1286
  # Structured Data
1287
  st.subheader("1️⃣ Structured Data πŸ—‚οΈ")
1288
  st.write("""
 
1318
  st.write("Understanding the types of data helps us decide how to use it. Structured data is like a neat file cabinet, semi-structured is like a stack of papers with labels, and unstructured is like a box of random items.")
1319
 
1320
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1321
  # Initialize session state
1322
  if 'page' not in st.session_state:
1323
  st.session_state['page'] = "home"