ankithpatel commited on
Commit
67e601a
verified
1 Parent(s): f92d1b4

Update pages/introduction.py

Browse files
Files changed (1) hide show
  1. pages/introduction.py +18 -0
pages/introduction.py CHANGED
@@ -4,3 +4,21 @@ st.markdown("""<h2 style="text-align: center; display: inline; text-decoration:
4
  st.markdown("""<p style="font-family: 'Arial', sans-serif; font-size: 16px; color: blue;">Data science is a multidisciplinary field that combines statistics, programming, and domain expertise to extract meaningful insights from data. It involves collecting, cleaning, and analyzing vast amounts of structured and unstructured data to uncover patterns, trends, and valuable information.</p>""",unsafe_allow_html=True)
5
  st.markdown("""<p1 style="font-family: 'Arial', sans-serif; font-size: 16px; color: blue;">With the rise of digital technology, data is being generated at an unprecedented rate, and data science helps organizations make sense of it. By leveraging tools like Python, R, and machine learning algorithms, data scientists solve real-world problems in areas like healthcare, finance, marketing, and more.</p1>""",unsafe_allow_html=True)
6
  st.markdown("""<p2 style="font-family: 'Arial', sans-serif; font-size: 16px; color: blue;">For example, in e-commerce, data science is used to personalize customer recommendations, while in healthcare, it assists in disease prediction. Critical thinking and curiosity are essential for a data scientist to derive actionable insights from complex datasets. As businesses increasingly rely on data-driven decisions, data science has become one of the most sought-after and impactful career paths.</p2>""",unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  st.markdown("""<p style="font-family: 'Arial', sans-serif; font-size: 16px; color: blue;">Data science is a multidisciplinary field that combines statistics, programming, and domain expertise to extract meaningful insights from data. It involves collecting, cleaning, and analyzing vast amounts of structured and unstructured data to uncover patterns, trends, and valuable information.</p>""",unsafe_allow_html=True)
5
  st.markdown("""<p1 style="font-family: 'Arial', sans-serif; font-size: 16px; color: blue;">With the rise of digital technology, data is being generated at an unprecedented rate, and data science helps organizations make sense of it. By leveraging tools like Python, R, and machine learning algorithms, data scientists solve real-world problems in areas like healthcare, finance, marketing, and more.</p1>""",unsafe_allow_html=True)
6
  st.markdown("""<p2 style="font-family: 'Arial', sans-serif; font-size: 16px; color: blue;">For example, in e-commerce, data science is used to personalize customer recommendations, while in healthcare, it assists in disease prediction. Critical thinking and curiosity are essential for a data scientist to derive actionable insights from complex datasets. As businesses increasingly rely on data-driven decisions, data science has become one of the most sought-after and impactful career paths.</p2>""",unsafe_allow_html=True)
7
+ import base64
8
+
9
+ # Convert the local image to a Base64 string
10
+ def get_base64_image(img_path):
11
+ with open(img_path, "rb") as f:
12
+ data = f.read()
13
+ return base64.b64encode(data).decode()
14
+
15
+ # Load local image
16
+ img_base64 = get_base64_image("C:\Users\ankit\Downloads\DALL路E 2024-12-05 09.53.46 - A detailed and visually appealing mind map illustrating the field of Data Science. The central node labeled 'Data Science' connects to key branches li.webp")
17
+
18
+ # HTML code for the local image
19
+ html_code = f"""
20
+ <div style="text-align: center;">
21
+ <img src="data:image/jpeg;base64,{img_base64}" alt="Local Image" style="border: 2px solid black; border-radius: 10px; max-width: 100%; height: auto;">
22
+ </div>
23
+ """,unsafe_allow_html=True)
24
+