DOMMETI commited on
Commit
c5a0add
·
verified ·
1 Parent(s): e92712c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +113 -39
app.py CHANGED
@@ -1,51 +1,125 @@
1
  import streamlit as st
2
  import math
3
  from functools import reduce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  st.title(":red[**1 : INTRODUCTION TO STATISTICS**]")
5
- st.markdown("""In this field we will be dealing with data by using programing language python. The term DATA
6
- ANALYSIS itself say’s that it will be dealing with data. In this we will be collecting the data and
7
- will be cleaning the data and then we will be analyzing the to get the insights from them. Now
8
- let us understand the term data.""")
9
- st.header("*What does term data refers to?*")
 
10
  st.subheader(":blue[DATA]")
11
- st.markdown("""Data is collection of information which is gathered from observation. There are wide
12
- sources of information. Some of the best examples of data are given below. \n * IMAGE is one of the best source of data. \n * TEXT is one of the best source of data.
13
- \n * VIDEO is one of the best source of data. \n * AUDIO is one of the best source of data.
14
  """)
15
- st.header("DATA is classified into 3-types.")
16
- st.subheader("Structured Data", divider=True)
17
- st.subheader("Unstructured Data", divider=True)
18
- st.subheader("Semi Structured Data", divider=True)
 
 
 
 
 
 
 
19
  st.subheader("**Structured Data**")
20
- st.markdown("""This type of data will be having a effective or well organized
21
- format.\nThis type of data is aligned in terms of row’s and column’s. Some of the best example’s of
22
- structured data are given below.\n * EXCEL DOCUMENT \n * STRUCTURED QUERY LANGUAGE DATABASE
23
- """)
 
 
 
24
  st.image('https://cdn-uploads.huggingface.co/production/uploads/64c972774515835c4dadd754/dSbyOXaQ6N_Kg2TLxgEyt.png', width=400)
 
25
  st.subheader("**Unstructured Data**")
26
- st.markdown("""This type of data will not be having any effective or well
27
- organized format. This type of data doesn’t have any row’s and column’s. Some of the best
28
- example’s of unstructured data are given below.\n * IMAGE\n * VIDEO\n * TEXT\n *Social Media Feeds
29
- """)
 
 
 
 
 
30
  st.image("https://cdn-uploads.huggingface.co/production/uploads/64c972774515835c4dadd754/xhaNBRanDaj8esumqo9hl.png", width=400)
31
- st.subheader("**Semi Structured Data**")
32
- st.markdown("""This type of data can be called as combination of
33
- structured data as well as unstructured data. Some of the best examples of semi structured
34
- data are given below.\n * COMMA SEPERATED VARIABLE\n *JSON FILES\n * E-MAILS\n * HTML
35
- """)
 
 
 
 
 
 
36
  st.image("https://cdn-uploads.huggingface.co/production/uploads/64c972774515835c4dadd754/Nupc6BePInRVo9gJwLfWH.png", width=400)
 
 
37
  st.title("2 : INTRODUCTION TO STATISTICS")
38
- st.markdown("""_The term statistics is a branch of mathematics and also can be called as a huge field in which
39
- we are going to deal with data which involves collecting, analyzing, interpreting, and
40
- structuring the data. Statistics is classified into two types.
41
- _""")
42
- st.subheader("2.1 Descriptive Statistics",divider=True)
43
- st.subheader("2.2 Inferential Statistics",divider=True)
44
- st.subheader("**2.1 Descriptive Statistics**")
45
- st.markdown("""This Descriptive Statistics describe the main feature of data. This
46
- descriptive statistics can be performed on sample data as well as population data. Some of
47
- the key points of descriptive statistics are stated below.\n KEY COCEPTS\n * Measurement of Central Tendency which involves finding Mean, Median, and Mode.\n * Measurement of Dispersion which involves finding Range, Variance and Standard Deviation.\n * Distribution which gives how frequently the data is occurring some of examples of distribution are Gaussian, Random, and Normal distribution""")
48
- st.subheader("**2.2 Inferential Statistics**")
49
- st.markdown("""This Inferential Statistics will describe the population based
50
- on a sample data. This statistics will give predictions about a population based on sample.
51
- """)
 
 
 
 
 
 
 
1
  import streamlit as st
2
  import math
3
  from functools import reduce
4
+
5
+ # Custom CSS for background, fonts, and text styling
6
+ st.markdown("""
7
+ <style>
8
+ body {
9
+ background-color: #f5f5f5;
10
+ }
11
+ h1 {
12
+ color: #d63384;
13
+ font-family: 'Arial', sans-serif;
14
+ font-weight: bold;
15
+ text-align: center;
16
+ }
17
+ h2 {
18
+ color: #1f77b4;
19
+ font-family: 'Arial', sans-serif;
20
+ font-weight: bold;
21
+ }
22
+ h3 {
23
+ color: #6c757d;
24
+ font-family: 'Arial', sans-serif;
25
+ }
26
+ .custom-subheader {
27
+ color: #2ca02c;
28
+ font-family: 'Arial', sans-serif;
29
+ margin-bottom: 0;
30
+ }
31
+ p {
32
+ font-family: 'Georgia', serif;
33
+ line-height: 1.6;
34
+ color: #343a40;
35
+ }
36
+ .icon-bullet {
37
+ list-style-type: none;
38
+ }
39
+ .icon-bullet li::before {
40
+ content: "✔️";
41
+ padding-right: 10px;
42
+ }
43
+ </style>
44
+ """, unsafe_allow_html=True)
45
+
46
+ # Title Section
47
  st.title(":red[**1 : INTRODUCTION TO STATISTICS**]")
48
+ st.markdown("""
49
+ In this field, we will be dealing with data using the programming language Python. The term **DATA ANALYSIS** itself indicates working with data. We will collect, clean, and analyze the data to gain insights. Let's first understand the term *data*.
50
+ """)
51
+
52
+ # Header Section
53
+ st.header("*What does the term data refer to?*")
54
  st.subheader(":blue[DATA]")
55
+
56
+ st.markdown("""
57
+ Data is a collection of information gathered from observation. There are many sources of information. Below are some examples:
58
  """)
59
+ st.markdown("""
60
+ <ul class="icon-bullet">
61
+ <li>IMAGE</li>
62
+ <li>TEXT</li>
63
+ <li>VIDEO</li>
64
+ <li>AUDIO</li>
65
+ </ul>
66
+ """, unsafe_allow_html=True)
67
+
68
+ # Data Classification Section
69
+ st.header("DATA is classified into 3 types.")
70
  st.subheader("**Structured Data**")
71
+ st.markdown("""
72
+ This type of data is well-organized, typically in rows and columns. Examples include:
73
+ <ul class="icon-bullet">
74
+ <li>EXCEL DOCUMENT</li>
75
+ <li>STRUCTURED QUERY LANGUAGE DATABASE</li>
76
+ </ul>
77
+ """, unsafe_allow_html=True)
78
  st.image('https://cdn-uploads.huggingface.co/production/uploads/64c972774515835c4dadd754/dSbyOXaQ6N_Kg2TLxgEyt.png', width=400)
79
+
80
  st.subheader("**Unstructured Data**")
81
+ st.markdown("""
82
+ This type of data is not organized in a predefined manner. Examples include:
83
+ <ul class="icon-bullet">
84
+ <li>IMAGE</li>
85
+ <li>VIDEO</li>
86
+ <li>TEXT</li>
87
+ <li>Social Media Feeds</li>
88
+ </ul>
89
+ """, unsafe_allow_html=True)
90
  st.image("https://cdn-uploads.huggingface.co/production/uploads/64c972774515835c4dadd754/xhaNBRanDaj8esumqo9hl.png", width=400)
91
+
92
+ st.subheader("**Semi-Structured Data**")
93
+ st.markdown("""
94
+ This data combines elements of both structured and unstructured data. Examples include:
95
+ <ul class="icon-bullet">
96
+ <li>COMMA SEPARATED VARIABLE (CSV)</li>
97
+ <li>JSON FILES</li>
98
+ <li>E-MAILS</li>
99
+ <li>HTML</li>
100
+ </ul>
101
+ """, unsafe_allow_html=True)
102
  st.image("https://cdn-uploads.huggingface.co/production/uploads/64c972774515835c4dadd754/Nupc6BePInRVo9gJwLfWH.png", width=400)
103
+
104
+ # Introduction to Statistics
105
  st.title("2 : INTRODUCTION TO STATISTICS")
106
+ st.markdown("""
107
+ _Statistics is a branch of mathematics focused on collecting, analyzing, interpreting, and structuring data. It is classified into two types:_
108
+ """)
109
+
110
+ # Descriptive Statistics Section
111
+ st.subheader("2.1 Descriptive Statistics")
112
+ st.markdown("""
113
+ Descriptive Statistics describes the main features of data. It can be performed on sample data as well as population data. Key concepts include:
114
+ <ul class="icon-bullet">
115
+ <li>Measurement of Central Tendency (Mean, Median, Mode)</li>
116
+ <li>Measurement of Dispersion (Range, Variance, Standard Deviation)</li>
117
+ <li>Distribution (e.g., Gaussian, Random, Normal)</li>
118
+ </ul>
119
+ """, unsafe_allow_html=True)
120
+
121
+ # Inferential Statistics Section
122
+ st.subheader("2.2 Inferential Statistics")
123
+ st.markdown("""
124
+ Inferential Statistics makes predictions about a population based on sample data.
125
+ """)