LakshmiHarika commited on
Commit
0762c0d
·
verified ·
1 Parent(s): 8264099

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +24 -27
pages/Data Collection.py CHANGED
@@ -6,6 +6,7 @@ st.set_page_config(
6
  page_icon="🚀",
7
  layout="wide"
8
  )
 
9
  # Global CSS for consistent styling across all pages
10
  st.markdown("""
11
  <style>
@@ -38,6 +39,7 @@ st.markdown(
38
  """,
39
  unsafe_allow_html=True
40
  )
 
41
  # Page Title
42
  st.markdown("""
43
  <div style="text-align: left; margin-top: 20px;">
@@ -99,18 +101,26 @@ if data_type == "Structured Data":
99
  "Gender": ["Female", "Female", "Male", "Female"]
100
  }
101
  df = pd.DataFrame(student_data)
102
- st.dataframe(df)
 
 
 
 
 
 
 
 
 
 
 
103
 
104
- # Data Formats in Structured Data
105
  st.write("""
106
- **Data Formats in Structured Data:**
107
  - **Excel**: Widely used for tabular data, calculations, and data visualization.
108
  """)
109
 
110
- # Button to Explore Excel
111
  if st.button("Explore Excel"):
112
- st.write("Redirecting to Excel page...")
113
- # Add functionality to redirect or display additional details here
114
 
115
  # Unstructured Data Section
116
  elif data_type == "Unstructured Data":
@@ -143,32 +153,19 @@ elif data_type == "Unstructured Data":
143
  - **Text**: Emails, social media posts, and blog articles.
144
  """)
145
 
146
- # Data Formats in Unstructured Data
 
 
 
 
 
147
  st.write("""
148
- **Data Formats in Unstructured Data:**
149
  - **Images**: Formats like JPEG, PNG, BMP, and TIFF.
150
  - **Audio**: Formats like MP3, WAV, and FLAC.
151
  - **Videos**: Formats like MP4, AVI, and MKV.
152
  - **Text**: Formats like TXT, LOG, and DOCX.
153
  """)
154
 
155
- # Explore Formats
156
  if st.button("Explore Unstructured Data"):
157
- st.write("Select a format to explore:")
158
- col1, col2, col3, col4 = st.columns(4)
159
-
160
- with col1:
161
- if st.button("Images"):
162
- st.write("Images are often used in computer vision tasks. Common formats: JPEG, PNG.")
163
-
164
- with col2:
165
- if st.button("Audio"):
166
- st.write("Audio files represent sound data. Common formats: MP3, WAV.")
167
-
168
- with col3:
169
- if st.button("Video"):
170
- st.write("Video files combine visual and audio data. Common formats: MP4, AVI.")
171
-
172
- with col4:
173
- if st.button("Text"):
174
- st.write("Text data includes raw documents like emails or logs. Common formats: TXT, DOCX.")
 
6
  page_icon="🚀",
7
  layout="wide"
8
  )
9
+
10
  # Global CSS for consistent styling across all pages
11
  st.markdown("""
12
  <style>
 
39
  """,
40
  unsafe_allow_html=True
41
  )
42
+
43
  # Page Title
44
  st.markdown("""
45
  <div style="text-align: left; margin-top: 20px;">
 
101
  "Gender": ["Female", "Female", "Male", "Female"]
102
  }
103
  df = pd.DataFrame(student_data)
104
+ st.markdown(df.style.set_table_styles(
105
+ [{
106
+ 'selector': 'thead th',
107
+ 'props': 'font-weight: bold;'
108
+ }]
109
+ ).hide(axis="index").to_html(), unsafe_allow_html=True)
110
+
111
+ st.markdown("""
112
+ <div style="text-align: left; margin-top: 20px;">
113
+ <h4 style="color: #5b2c6f;">Data Formats in Structured Data:</h4>
114
+ </div>
115
+ """, unsafe_allow_html=True)
116
 
 
117
  st.write("""
118
+ **Data Formats:**
119
  - **Excel**: Widely used for tabular data, calculations, and data visualization.
120
  """)
121
 
 
122
  if st.button("Explore Excel"):
123
+ st.write("You clicked the Excel button!")
 
124
 
125
  # Unstructured Data Section
126
  elif data_type == "Unstructured Data":
 
153
  - **Text**: Emails, social media posts, and blog articles.
154
  """)
155
 
156
+ st.markdown("""
157
+ <div style="text-align: left; margin-top: 20px;">
158
+ <h4 style="color: #5b2c6f;">Data Formats in Unstructured Data:</h4>
159
+ </div>
160
+ """, unsafe_allow_html=True)
161
+
162
  st.write("""
163
+ **Data Formats:**
164
  - **Images**: Formats like JPEG, PNG, BMP, and TIFF.
165
  - **Audio**: Formats like MP3, WAV, and FLAC.
166
  - **Videos**: Formats like MP4, AVI, and MKV.
167
  - **Text**: Formats like TXT, LOG, and DOCX.
168
  """)
169
 
 
170
  if st.button("Explore Unstructured Data"):
171
+ st.write("You clicked the Unstructured Data button!")