Spaces:
Sleeping
Sleeping
Create hari.py
Browse files- pages/hari.py +47 -0
pages/hari.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
def main():
|
| 4 |
+
st.title("Data Types Explorer")
|
| 5 |
+
|
| 6 |
+
# Radio buttons for data types
|
| 7 |
+
data_type = st.radio("Select the type of data:",
|
| 8 |
+
("Structured Data", "Semi-Structured Data", "Unstructured Data"))
|
| 9 |
+
|
| 10 |
+
# Handle Structured Data
|
| 11 |
+
if data_type == "Structured Data":
|
| 12 |
+
st.subheader("Structured Data")
|
| 13 |
+
if st.button("Excel"):
|
| 14 |
+
st.write("Excel: A widely used spreadsheet format for organizing data in rows and columns. It supports formulas, charts, and various features for data analysis.")
|
| 15 |
+
|
| 16 |
+
# Handle Unstructured Data
|
| 17 |
+
elif data_type == "Unstructured Data":
|
| 18 |
+
st.subheader("Unstructured Data")
|
| 19 |
+
col1, col2 = st.columns(2)
|
| 20 |
+
with col1:
|
| 21 |
+
if st.button("Image"):
|
| 22 |
+
st.write("Images: Unstructured data representing visual content, stored in formats like JPEG, PNG, or BMP.")
|
| 23 |
+
with col2:
|
| 24 |
+
if st.button("Video"):
|
| 25 |
+
st.write("Videos: Time-based media containing sequences of images (frames) and audio, stored in formats like MP4, AVI, or MKV.")
|
| 26 |
+
|
| 27 |
+
# Handle Semi-Structured Data
|
| 28 |
+
elif data_type == "Semi-Structured Data":
|
| 29 |
+
st.subheader("Semi-Structured Data")
|
| 30 |
+
col1, col2 = st.columns(2)
|
| 31 |
+
col3, col4 = st.columns(2)
|
| 32 |
+
|
| 33 |
+
with col1:
|
| 34 |
+
if st.button("CSV"):
|
| 35 |
+
st.write("CSV: Comma-Separated Values, a simple file format for tabular data, where columns are separated by commas.")
|
| 36 |
+
with col2:
|
| 37 |
+
if st.button("JSON"):
|
| 38 |
+
st.write("JSON: JavaScript Object Notation, a lightweight format for exchanging data, primarily used in APIs.")
|
| 39 |
+
with col3:
|
| 40 |
+
if st.button("HTML"):
|
| 41 |
+
st.write("HTML: Hypertext Markup Language, the standard language for creating and structuring web pages.")
|
| 42 |
+
with col4:
|
| 43 |
+
if st.button("XML"):
|
| 44 |
+
st.write("XML: Extensible Markup Language, a flexible way to create information formats and electronically share structured data.")
|
| 45 |
+
|
| 46 |
+
if __name__ == "__main__":
|
| 47 |
+
main()
|