Harika22 commited on
Commit
a76eeba
·
verified ·
1 Parent(s): daea6c5

Update pages/4_Data and types of data.py

Browse files
Files changed (1) hide show
  1. pages/4_Data and types of data.py +154 -0
pages/4_Data and types of data.py CHANGED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+
4
+ st.markdown("""
5
+ <style>
6
+ /* General body styling */
7
+ body {
8
+ background-color: #1e1e2f; /* Soft dark background */
9
+ color: #d4d4dc; /* Light gray text for readability */
10
+ font-family: 'Arial', sans-serif;
11
+ }
12
+
13
+ /* Main title styling */
14
+ h1 {
15
+ color: #ff6f61; /* Vibrant coral for attention */
16
+ font-family: 'Roboto', sans-serif;
17
+ font-size: 2.5em;
18
+ font-weight: bold;
19
+ text-align: center;
20
+ margin: 20px 0;
21
+ }
22
+
23
+ /* Subheading styling */
24
+ h2, h3 {
25
+ font-family: 'Roboto', sans-serif;
26
+ color: #61dafb; /* Soft blue for headers */
27
+ margin-top: 20px;
28
+ margin-bottom: 15px;
29
+ }
30
+
31
+ h2 {
32
+ font-size: 2em;
33
+ font-weight: 600;
34
+ }
35
+
36
+ h3 {
37
+ font-size: 1.6em;
38
+ font-weight: 500;
39
+ }
40
+
41
+ /* Paragraph styling */
42
+ p {
43
+ font-family: 'Georgia', serif;
44
+ line-height: 1.8;
45
+ font-size: 1.1em;
46
+ color: #e6e6fa; /* Soft lavender for readability */
47
+ margin-bottom: 20px;
48
+ }
49
+
50
+ /* List styling */
51
+ ul.icon-bullet {
52
+ list-style-type: none;
53
+ padding-left: 20px;
54
+ }
55
+
56
+ ul.icon-bullet li {
57
+ font-size: 1.1em;
58
+ margin-bottom: 10px;
59
+ color: #dcdcdc; /* Neutral gray for subtlety */
60
+ }
61
+
62
+ ul.icon-bullet li::before {
63
+ content: "\2714"; /* Checkmark */
64
+ padding-right: 10px;
65
+ color: #32cd32; /* Bright green for positivity */
66
+ }
67
+
68
+ /* Sidebar styling */
69
+ .sidebar .sidebar-content {
70
+ background-color: #282c34; /* Dark slate for sidebar */
71
+ border-radius: 10px;
72
+ padding: 15px;
73
+ color: #ffffff; /* Light text for contrast */
74
+ }
75
+
76
+ .sidebar h2 {
77
+ color: #ffa500; /* Warm orange for headings */
78
+ font-family: 'Roboto', sans-serif;
79
+ }
80
+
81
+ /* Button styling */
82
+ button {
83
+ background-color: #ff6f61; /* Vibrant coral */
84
+ color: #ffffff; /* White text */
85
+ font-size: 1em;
86
+ border: none;
87
+ padding: 10px 20px;
88
+ border-radius: 5px;
89
+ cursor: pointer;
90
+ transition: background-color 0.3s;
91
+ }
92
+
93
+ button:hover {
94
+ background-color: #ff4500; /* Slightly darker coral */
95
+ }
96
+
97
+ /* Mobile responsive styling */
98
+ @media only screen and (max-width: 600px) {
99
+ h1 {
100
+ font-size: 1.8em;
101
+ }
102
+
103
+ h2, h3 {
104
+ font-size: 1.5em;
105
+ }
106
+
107
+ p {
108
+ font-size: 1em;
109
+ }
110
+ }
111
+ </style>
112
+ """, unsafe_allow_html=True)
113
+
114
+ st.title("DATA")
115
+ st.subheader("What is data?...")
116
+ st.markdown("""
117
+ Data refers to a collection of information gathered from various sources
118
+ """, unsafe_allow_html=True)
119
+
120
+ st.header("Data Classification")
121
+ st.subheader("Structured Data")
122
+ st.markdown("""
123
+ Structured data is organized and formatted data stored in a defined schema, such as rows and columns in tables, making it easily searchable and analyzable.Examples:
124
+ <ul class="icon-bullet">
125
+ <li>Excel</li>
126
+ <li>SQL</li>
127
+ </ul>
128
+ """, unsafe_allow_html=True)
129
+ st.image("https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/uZB2ExnzTIiWGNSL8Eiro.png",width=300)
130
+
131
+ st.subheader("Unstructured Data")
132
+ st.markdown("""
133
+ Unstructured data is information that lacks a predefined format or organization. Examples :
134
+ <ul class="icon-bullet">
135
+ <li>Images</li>
136
+ <li>Videos</li>
137
+ <li>Text</li>
138
+ <li>Audio</li>
139
+ </ul>
140
+ """, unsafe_allow_html=True)
141
+ st.image("https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/xzk_q2DIqS3Bgy6PoUrpU.png",width=300)
142
+
143
+ st.subheader("Semi-Structured Data")
144
+ st.markdown("""
145
+ Semi-structured data is a type of data that doesn't conform to a strict schema but has organizational properties, such as tags or markers, to separate elements. Examples :
146
+ <ul class="icon-bullet">
147
+ <li>CSV /li>
148
+ <li>JSON </li>
149
+ <li>HTML </li>
150
+ <li>XML</li>
151
+ </ul>
152
+ """, unsafe_allow_html=True)
153
+ st.image("https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/qtBtX6rKojcNx8Z_h9SRS.png",width=300)
154
+