Harika22 commited on
Commit
1db1ee8
·
verified ·
1 Parent(s): ab98556

Update pages/3_Life cycle of ML.py

Browse files
Files changed (1) hide show
  1. pages/3_Life cycle of ML.py +114 -0
pages/3_Life cycle of ML.py CHANGED
@@ -95,3 +95,117 @@ if selected_step:
95
 
96
  st.markdown("<hr>", unsafe_allow_html=True)
97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
  st.markdown("<hr>", unsafe_allow_html=True)
97
 
98
+ elif st.session_state["current_page"] == "Data Collection":
99
+ st.title(":bar_chart: Data Collection")
100
+ st.write("### Overview")
101
+ st.write(
102
+ "Data gathering is the process of collecting relevant data to solve a specific problem or achieve an objective."
103
+ )
104
+ st.markdown("""
105
+ #### Types of Data:
106
+ - **🟢 Structured Data**: Organized data with a predefined schema, such as databases, Excel sheets.
107
+ - **🟠 Semi-Structured Data**: Data that doesn't conform strictly to a schema but has organizational tags, like JSON or XML.
108
+ - **🔴 Unstructured Data**: Unorganized data such as images, audio, and videos without a specific format.
109
+ """)
110
+
111
+ col1, col2, col3 = st.columns(3)
112
+ with col1:
113
+ if st.button("Structured Data"):
114
+ navigate_to("Structured Data")
115
+ with col2:
116
+ if st.button("Semi-Structured Data"):
117
+ navigate_to("Semi-Structured Data")
118
+ with col3:
119
+ if st.button("Unstructured Data"):
120
+ navigate_to("Unstructured Data")
121
+
122
+ # Back to Main button
123
+ if st.button("Back to Main"):
124
+ navigate_to("Main")
125
+
126
+ elif st.session_state["current_page"] == "Structured Data":
127
+ st.title("🟢 Structured Data")
128
+ st.markdown("**Structured data** is highly organized and stored in a fixed format, making it easily searchable.")
129
+ st.markdown("### Examples of Structured Data")
130
+ st.markdown("""
131
+ - **Relational Databases**: Tables with rows and columns.
132
+ - **Spreadsheets**: Data stored in Excel format.
133
+ - **SQL Databases**: Structured query language (SQL) is used to manage and manipulate relational databases.
134
+ """)
135
+
136
+ st.markdown("### What is SQL?")
137
+ st.write("""
138
+ **SQL (Structured Query Language)** is a standardized programming language used to manage and manipulate relational databases.
139
+ It is the most widely used language for managing structured data, particularly in systems where data is stored in rows and columns.
140
+ """)
141
+
142
+ st.markdown("### Key Features of SQL:")
143
+ st.markdown("""
144
+ - **Data Querying**: Retrieve data from relational databases using the SELECT statement.
145
+ - **Data Manipulation**: Insert, update, and delete data in tables with the INSERT, UPDATE, and DELETE commands.
146
+ - **Data Definition**: Define and modify the structure of database tables (e.g., CREATE, ALTER).
147
+ - **Data Control**: Manage permissions and access to the database (e.g., GRANT, REVOKE).
148
+ """)
149
+
150
+ # Adding button for Excel and SQL data formats under Structured Data
151
+ col1, col2 = st.columns(2)
152
+ with col1:
153
+ if st.button("Excel"):
154
+ navigate_to("Excel Data Format")
155
+ with col2:
156
+ if st.button("SQL"):
157
+ navigate_to("SQL Data Format")
158
+
159
+ # Back to Types of Data button
160
+ if st.button("Back to Types of Data"):
161
+ navigate_to("Data Gathering")
162
+
163
+ elif st.session_state["current_page"] == "Semi-Structured Data":
164
+ st.title("🟠 Semi-Structured Data")
165
+ st.write(
166
+ "Semi-structured data is partially organized and contains tags or markers to separate elements, but it does not adhere to a strict schema."
167
+ )
168
+ st.markdown("### Common Formats")
169
+ st.markdown("""
170
+ - **JSON**: Widely used for web APIs.
171
+ - **XML**: Common for document-based data.
172
+ - **CSV**: Commonly used for data storage with commas separating values (often used with JSON/XML for data interchange).
173
+ """)
174
+
175
+ # Adding buttons for JSON, XML, and CSV data formats under Semi-Structured Data
176
+ col1, col2, col3 = st.columns(3)
177
+ with col1:
178
+ if st.button("JSON"):
179
+ navigate_to("JSON Data Format")
180
+ with col2:
181
+ if st.button("XML"):
182
+ navigate_to("XML Data Format")
183
+ with col3:
184
+ if st.button("CSV"):
185
+ navigate_to("CSV Data Format")
186
+
187
+ # Back to Types of Data button
188
+ if st.button("Back to Types of Data"):
189
+ navigate_to("Data Gathering")
190
+
191
+ elif st.session_state["current_page"] == "SQL Data Format":
192
+ st.title(":file_folder: SQL Data Format")
193
+ st.write("**SQL (Structured Query Language)** is used to query, update, and manage relational databases.")
194
+ st.markdown("### Common SQL Databases")
195
+ st.markdown("""
196
+ - **MySQL**: Open-source relational database management system.
197
+ - **PostgreSQL**: Advanced open-source relational database system.
198
+ - **SQLite**: Lightweight, file-based SQL database.
199
+ """)
200
+
201
+ st.markdown("### Example SQL Query")
202
+ st.code(
203
+ """sql
204
+ SELECT * FROM customers WHERE age > 30;
205
+ """,
206
+ language="sql",
207
+ )
208
+
209
+ # Back to Structured Data button
210
+ if st.button("Back to Structured Data"):
211
+ navigate_to("Structured Data")