ronakreddy18 commited on
Commit
3d25f6a
·
verified ·
1 Parent(s): 16cf303

Update pages/introds.py

Browse files
Files changed (1) hide show
  1. pages/introds.py +85 -1
pages/introds.py CHANGED
@@ -1,3 +1,87 @@
1
  import streamlit
2
  import pandas
3
- import numpy
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit
2
  import pandas
3
+ import numpy
4
+ st.markdown("<h1 style='text-align: center; color: Balck;'>Introduction To Data Science</h1>", unsafe_allow_html=True)
5
+ st.markdown("<h2 style='color: Black;'>CSS background </h2>", unsafe_allow_html=True)
6
+ st.markdown(
7
+ "<p style='font-size: 16px; color: Blue; font-style: italic;'>"
8
+
9
+ # CSS for styling with the background image
10
+ custom_css = """
11
+ <style>
12
+ /* General styling for the image */
13
+ .styled-image {
14
+ max-width: 100%; /* Ensure the image is responsive */
15
+ height: auto; /* Maintain aspect ratio */
16
+ border-radius: 15px; /* Rounded corners */
17
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
18
+ border: 5px solid #ffffff; /* Optional border with white color */
19
+ transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
20
+ }
21
+
22
+ /* Hover effect */
23
+ .styled-image:hover {
24
+ transform: scale(1.05); /* Slight zoom effect */
25
+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
26
+ border-color: #4caf50; /* Change border color on hover */
27
+ }
28
+
29
+ /* Caption styling */
30
+ .image-container {
31
+ text-align: center;
32
+ margin: 20px 0;
33
+ }
34
+
35
+ .image-caption {
36
+ margin-top: 10px;
37
+ font-size: 1rem; /* Adjust font size */
38
+ color: #555; /* Gray color for caption text */
39
+ font-style: italic;
40
+ }
41
+ </style>
42
+ """
43
+ # Apply custom CSS
44
+ st.markdown(custom_css, unsafe_allow_html=True)
45
+ # Page Title
46
+ st.markdown("<h1> Data science </h1>", unsafe_allow_html=True)
47
+ # Section: What is Data Science?
48
+ st.markdown("""
49
+ <div class="section">
50
+ <h2>What is Data Science? </h2>
51
+ <p>
52
+ It combines techniques from statistics, computer science, mathematics, and domain expertise to analyze and interpret data effectively.
53
+ In essence, data science transforms raw data into actionable insights, driving smarter decisions across industries.
54
+ There are some several types of explanations which are given below :
55
+ </p>
56
+ <ul>
57
+ <li>Analyzing customer reviews to identify product sentiment</li>
58
+ <li>Techniques Used: Natural Language Processing (NLP), sentiment analysis.</li>
59
+
60
+ <li>Optimizing delivery routes for logistics companies</li>
61
+ <li>Techniques Used: Graph algorithms, optimization techniques </li>
62
+ </ul>
63
+ </div>
64
+ <div class="section">
65
+ <h2>Few Important steps in DS </h2>
66
+ <p>
67
+ Data Science has several steps ,such as :
68
+ </p>
69
+ <ul>
70
+ <li><strong>Understanding the given problem:</strong>First thing is you need to understand the given type of problem</li>
71
+ <li><strong>Data Collection:</strong> Gather relevant data from various sources to address the defined problem.</li>
72
+ <li><strong>Data Cleaning and Preprocessing: </strong> Prepare the raw data for analysis by handling inconsistencies, missing values, and errors. </li>
73
+ <li><strong>Exploratory Data Analysis (EDA):</strong>Gain an initial understanding of the data’s main characteristics through visualization and summary statistics.</li>
74
+ <li><strong> Deployment: </strong Implement the model into a production environment where it can provide actionable insights or make decisions in real-time.> </li>
75
+ </ul>
76
+ </div>
77
+ """, unsafe_allow_html=True)
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+