Spaces:
Sleeping
Sleeping
Update pages/Data Collection.py
Browse files- pages/Data Collection.py +33 -1
pages/Data Collection.py
CHANGED
|
@@ -58,5 +58,37 @@ data_type = st.radio(
|
|
| 58 |
("Structured Data", "Unstructured Data", "Semi-Structured Data"))
|
| 59 |
|
| 60 |
if data_type == "Structured":
|
| 61 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
|
|
|
| 58 |
("Structured Data", "Unstructured Data", "Semi-Structured Data"))
|
| 59 |
|
| 60 |
if data_type == "Structured":
|
| 61 |
+
st.markdown("""
|
| 62 |
+
<div style="text-align: left; margin-top: 20px;">
|
| 63 |
+
<h3 style="color: #e25822;">What is Structured Data?</h3></div>""", unsafe_allow_html=True)
|
| 64 |
+
|
| 65 |
+
st.subheader("Definition")
|
| 66 |
+
st.write("""
|
| 67 |
+
Structured data refers to information that is organized and formatted in a predefined manner, making it easy to store, retrieve, and analyze.
|
| 68 |
+
|
| 69 |
+
It is typically stored in tabular formats like rows and columns, where each field contains a specific type of information.
|
| 70 |
+
|
| 71 |
+
This type of data is often used in relational databases and spreadsheets, where relationships between data points are explicitly defined.
|
| 72 |
+
""")
|
| 73 |
+
|
| 74 |
+
st.subheader("Characteristics")
|
| 75 |
+
st.write("""
|
| 76 |
+
- Follows a fixed schema.
|
| 77 |
+
- Can be easily searched using query languages like SQL.
|
| 78 |
+
- Suitable for quantitative analysis.
|
| 79 |
+
""")
|
| 80 |
+
|
| 81 |
+
# Examples
|
| 82 |
+
st.subheader("Examples")
|
| 83 |
+
st.write("""
|
| 84 |
+
A database of employees with fields like name, age, and salary:
|
| 85 |
+
""")
|
| 86 |
+
|
| 87 |
+
# Add a table for the employee database example
|
| 88 |
+
st.table({
|
| 89 |
+
"Name": ["John Doe", "Jane Smith"],
|
| 90 |
+
"Age": [30, 25],
|
| 91 |
+
"Salary": ["$5000", "$4500"]
|
| 92 |
+
})
|
| 93 |
+
|
| 94 |
|