Spaces:
Sleeping
Sleeping
Update pages/Data Collection.py
Browse files39 unmodified lines4041424344454687 unmodified lines13413513613713813914014114 unmodified lines15615715815916016122 unmodified lines18418518618718818919012 unmodified lines20320420520620720820921021121221321421521621735 unmodified lines25325425525625725839 unmodified linesunsafe_allow_html=True)# Ensure session state for page tracking is initializedif "current_page" not in st.session_state:st.session_state.current_page = "main"87 unmodified linesst.write("Click to explore Structured Data Formats:")if st.button("Explore Excel"):navigate_to("explore_excel")if st.button("Explore CSV"):navigate_to("explore_csv")# Unstructured Data Contentelif data_type == "Unstructured Data":14 unmodified linesExamples include multimedia files (images, videos, audio), emails, and social media posts.""")st.write("Click to explore Unstructured Data Formats:")if st.button("Explore Images"):navigate_to("explore_images")22 unmodified linesThis type of data is more flexible than structured data but still organized enough to allow for easier analysis than unstructured data.""")st.write("Click to explore Semi-Structured Data Formats:")if st.button("Explore JSON"):navigate_to("explore_json")if st.button("Explore XML"):12 unmodified linesif st.button("Go Back"):navigate_to("main")elif st.session_state.current_page == "explore_csv":st.markdown("""<h3 style="color: #e25822;">Exploring CSV</h3>""", unsafe_allow_html=True)st.write("""CSV is a simple text-based format where data fields are separated by commas.""")if st.button("Go Back"):navigate_to("main")elif st.session_state.current_page == "explore_images":st.markdown("""35 unmodified linesif st.button("Go Back"):navigate_to("main")elif st.session_state.current_page == "explore_json":st.markdown("""<h3 style="color: #e25822;">Exploring JSON</h3>39 unmodified lines4041424344454687 unmodified lines13413513613713813914014 unmodified lines15515615715815916016116216316416516616716816917017122 unmodified lines19419519619719819920020120220320420520620720820921021121221321421512 unmodified lines22822923023123223335 unmodified lines26927027127227327427527627727827928028128228328439 unmodified linesunsafe_allow_html=True)# Ensure session state for navigationif "current_page" not in st.session_state:st.session_state.current_page = "main"87 unmodified linesst.write("Click to explore Structured Data Formats:")if st.button("Explore Excel"):navigate_to("explore_excel")# Unstructured Data Contentelif data_type == "Unstructured Data":14 unmodified linesExamples include multimedia files (images, videos, audio), emails, and social media posts.""")st.markdown("""<div style="text-align: left; margin-top: 20px;"><h4 style="color: #5b2c6f;">Characteristics:</h4></div>""", unsafe_allow_html=True)st.write("""- Does not follow a specific schema or structure.- Cannot be stored in traditional tabular formats like rows and columns.- Requires advanced tools like machine learning or natural language processing (NLP) for analysis.""")st.write("Click to explore Unstructured Data Formats:")if st.button("Explore Images"):navigate_to("explore_images")22 unmodified linesThis type of data is more flexible than structured data but still organized enough to allow for easier analysis than unstructured data.""")st.markdown("""<div style="text-align: left; margin-top: 20px;"><h4 style="color: #5b2c6f;">Examples:</h4></div>""", unsafe_allow_html=True)st.write("""Examples of semi-structured data include:- **CSV**: Comma-separated values in plain-text files.- **JSON**: A lightweight data-interchange format used in web applications.- **XML**: Extensible Markup Language for structured document encoding.- **HTML**: Markup language for web pages.""")st.write("Click to explore Semi-Structured Data Formats:")if st.button("Explore CSV"):navigate_to("explore_csv")if st.button("Explore JSON"):navigate_to("explore_json")if st.button("Explore XML"):12 unmodified linesif st.button("Go Back"):navigate_to("main")elif st.session_state.current_page == "explore_images":st.markdown("""35 unmodified linesif st.button("Go Back"):navigate_to("main")elif st.session_state.current_page == "explore_csv":st.markdown("""<h3 style="color: #e25822;">Exploring CSV</h3>""", unsafe_allow_html=True)st.write("""CSV is a simple text-based format where data fields are separated by commas.""")if st.button("Go Back"):navigate_to("main")elif st.session_state.current_page == "explore_json":st.markdown("""<h3 style="color: #e25822;">Exploring JSON</h3>
pages/Data Collection.py+38-12