Spaces:
Sleeping
Sleeping
Update pages/Intro.py
#5
by
Adiga02
- opened
- pages/Intro.py +53 -0
pages/Intro.py
CHANGED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import matplotlib.pyplot as plt
|
3 |
+
import pandas as pd
|
4 |
+
import plotly.graph_objects as go
|
5 |
+
|
6 |
+
image_path_1 = 'C:/Users/DELL E5490/Desktop/project/data/.env/DataAnalysis.jpg'
|
7 |
+
image_path_2 = 'C:/Users\DELL E5490\Desktop\project\data\.env\Data-Analytics-Life-Cycle.jpg'
|
8 |
+
st.image(image_path_1,caption=None, width=int, use_column_width=True, clamp=True, channels="RGB", output_format="auto")
|
9 |
+
|
10 |
+
st.title("Steps to get Intution of Data Analysis")
|
11 |
+
|
12 |
+
st.header("What is Data 📊?")
|
13 |
+
st.markdown("Data consists of facts and information that are used to generate insights and conclusions.")
|
14 |
+
|
15 |
+
st.header("What is Data Analysi📈?")
|
16 |
+
st.markdown("""
|
17 |
+
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.""")
|
18 |
+
|
19 |
+
|
20 |
+
st.header("Why Use Python for Data Analysis 🤔?")
|
21 |
+
|
22 |
+
st.markdown("""
|
23 |
+
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:
|
24 |
+
|
25 |
+
- *Versatility*: Python can handle a wide variety of data types and sources, making it suitable for diverse data analysis tasks.
|
26 |
+
- *Libraries*: Python has extensive libraries such as Pandas, NumPy, Matplotlib, and Scikit-learn that facilitate data manipulation, analysis, and visualization.
|
27 |
+
- *Automation*: Python allows for automation of repetitive tasks and complex computations, improving efficiency and productivity.
|
28 |
+
- *Community Support*: Python has a large and active community which means abundant resources, tutorials, and support.
|
29 |
+
""")
|
30 |
+
|
31 |
+
advantages = ['Versatility', 'Libraries', 'Automation', 'Community Support']
|
32 |
+
scores = [8, 9, 7, 9]
|
33 |
+
|
34 |
+
fig, ax = plt.subplots()
|
35 |
+
ax.barh(advantages, scores, color=['blue', 'green', 'orange', 'red'])
|
36 |
+
ax.set_xlabel('Importance')
|
37 |
+
ax.set_title('Advantages of Python for Data Analysis')
|
38 |
+
|
39 |
+
st.pyplot(fig)
|
40 |
+
|
41 |
+
st.header("Data Analysis Life Cycle🔄")
|
42 |
+
|
43 |
+
st.markdown("""
|
44 |
+
The data analysis life cycle includes the following steps:
|
45 |
+
|
46 |
+
- **Case Scenario**: Define the problem statement and the objectives of the analysis.
|
47 |
+
- **Collect the Data**: If no data is available, fetch the data from relevant sources.
|
48 |
+
- **Data Understanding**: Preprocess the data by understanding its shape, data types, and description.
|
49 |
+
- **Data Cleaning**: Clean the null values in the data using imputation methods to ensure accurate analysis.
|
50 |
+
- **Data Visualization**: Understand the underlying patterns of the data through univariate and bivariate analyses.
|
51 |
+
- **Outlier Detection**: Remove outliers that create biases in the results.
|
52 |
+
- **Data Transformation**: Apply transformations for better understanding and analysis of the data.
|
53 |
+
""")
|