Spaces:
Build error
Build error
Updated template
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091import streamlit as stimport matplotlib.pyplot as pltimage_path_1 = 'C:/Users/DELL E5490/Desktop/project/data/.env/DataAnalysis.jpg'image_path_2 = 'C:/Users/DELL E5490/Desktop/project/data/.env/Data-Analytics-Life-Cycle.jpg'st.image(image_path_1, caption=None, use_column_width=True, clamp=True, channels="RGB", output_format="auto")st.title("Intuition of Data Analysis")if 'show_data' not in st.session_state:st.session_state.show_data = Falseif 'show_analysis' not in st.session_state:st.session_state.show_analysis = Falseif 'show_python' not in st.session_state:st.session_state.show_python = Falseif 'show_life_cycle' not in st.session_state:st.session_state.show_life_cycle = Falsedef toggle(section):st.session_state.show_data = Falsest.session_state.show_analysis = Falsest.session_state.show_python = Falsest.session_state.show_life_cycle = Falseif section == 'data':st.session_state.show_data = Trueelif section == 'analysis':st.session_state.show_analysis = Trueelif section == 'python':st.session_state.show_python = Trueelif section == 'life_cycle':st.session_state.show_life_cycle = Trueif st.button('What is Data π?'):toggle('data')if st.session_state.show_data:st.write("Data consists of facts and information that are used to generate insights and conclusions.")if st.button('What is Data Analysis π?'):toggle('analysis')if st.session_state.show_analysis:st.write("""Data analysis is a comprehensive process that involves collecting, cleaning, transforming, integrating, reducing, and validating data to uncover meaningful insights. Python is a versatile and powerful tool for data analysis due to its extensive libraries, automation capabilities, and strong community support. By following a structured roadmap for data analysis, including univariate, bivariate, and multivariate analyses, you can effectively explore and understand your data to make informed decisions.""")if st.button('Why Use Python for Data Analysis π€?'):toggle('python')if st.session_state.show_python:st.markdown("""While tools like Excel and Power BI are commonly used for data visualization and analysis, Python is a powerful language for data analysis due to several reasons:- *Versatility*: Python can handle a wide variety of data types and sources, making it suitable for diverse data analysis tasks.- *Libraries*: Python has extensive libraries such as Pandas, NumPy, Matplotlib, and Scikit-learn that facilitate data manipulation, analysis, and visualization.- *Automation*: Python allows for automation of repetitive tasks and complex computations, improving efficiency and productivity.- *Community Support*: Python has a large and active community which means abundant resources, tutorials, and support.""")advantages = ['Versatility', 'Libraries', 'Automation', 'Community Support']scores = [8, 9, 7, 9]fig, ax = plt.subplots()ax.barh(advantages, scores, color=['blue', 'green', 'orange', 'red'])ax.set_xlabel('Importance')ax.set_title('Advantages of Python for Data Analysis')st.pyplot(fig)if st.button('Data Analysis Life Cycle π'):toggle('life_cycle')if st.session_state.show_life_cycle:st.markdown("""The data analysis life cycle includes the following steps:- **Case Scenario**: Define the problem statement and the objectives of the analysis.- **Collect the Data**: If no data is available, fetch the data from relevant sources.- **Data Understanding**: Preprocess the data by understanding its shape, data types, and description.- **Data Cleaning**: Clean the null values in the data using imputation methods to ensure accurate analysis.- **Data Visualization**: Understand the underlying patterns of the data through univariate and bivariate analyses.- **Outlier Detection**: Remove outliers that create biases in the results.- **Data Transformation**: Apply transformations for better understanding and analysis of the data.""")
pages/Intro.py+91