Spaces:
Sleeping
Sleeping
Update pages/info_of_CSV.py
Browse files- pages/info_of_CSV.py +70 -0
pages/info_of_CSV.py
CHANGED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import pandas as pd
|
3 |
+
import numpy as np
|
4 |
+
|
5 |
+
# Custom CSS for styling
|
6 |
+
custom_css = """
|
7 |
+
<style>
|
8 |
+
html, body, [data-testid="stAppViewContainer"] {
|
9 |
+
background-image: linear-gradient(
|
10 |
+
rgba(0, 0, 0, 0.6),
|
11 |
+
rgba(0, 0, 0, 0.6)
|
12 |
+
),
|
13 |
+
url("https://www.istockphoto.com/photo/tech-or-space-background-abstract-3d-illustration-gm1367865109-437999705?utm_source=pixabay&utm_medium=affiliate&utm_campaign=SRP_photo_sponsored&utm_content=https%3A%2F%2Fpixabay.com%2Fphotos%2Fsearch%2Fbackground%2520datascience%2F&utm_term=background+datascience.jpg");
|
14 |
+
background-size: cover;
|
15 |
+
background-position: center;
|
16 |
+
background-repeat: no-repeat;
|
17 |
+
background-attachment: fixed;
|
18 |
+
color: white; /* Ensures all text is readable */
|
19 |
+
}
|
20 |
+
h2, h3 {
|
21 |
+
color: #FFD700; /* Gold color for headings */
|
22 |
+
}
|
23 |
+
p {
|
24 |
+
color: #FFFFFF; /* White text for paragraphs */
|
25 |
+
}
|
26 |
+
</style>
|
27 |
+
"""
|
28 |
+
|
29 |
+
# Inject the CSS into the app
|
30 |
+
st.markdown(custom_css, unsafe_allow_html=True)
|
31 |
+
st.markdown("<h2 style='text-align: left; color: Black;'>📈What is CSV </h2>", unsafe_allow_html=True)
|
32 |
+
st.markdown(
|
33 |
+
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
34 |
+
"A CSV (Comma-Separated Values) file is a simple file format used to store tabular data, such as a spreadsheet or database. Each row in the file corresponds to a record, and each column is separated by a delimiter, typically a comma (,). CSV files are widely used because they are easy to create, parse, and manipulate."
|
35 |
+
"</p>",
|
36 |
+
unsafe_allow_html=True
|
37 |
+
)
|
38 |
+
st.markdown("<h2 style='text-align: left; color: Black;'>📈How to read CSV files</h2>", unsafe_allow_html=True)
|
39 |
+
st.markdown(
|
40 |
+
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
41 |
+
"CSV files can be read in various programming languages pandas in python, and Microsoft Excel application."
|
42 |
+
"</p>",
|
43 |
+
unsafe_allow_html=True
|
44 |
+
)
|
45 |
+
st.markdown("<h2 style='text-align: left; color: Black;'>📈Issues encountered when handling these files</h2>", unsafe_allow_html=True)
|
46 |
+
st.markdown("1. Parse error")
|
47 |
+
st.markdown("2. Unicode Decode Error")
|
48 |
+
st.markdown("3. Out of Memory")
|
49 |
+
st.markdown("4. Large File Size")
|
50 |
+
|
51 |
+
st.markdown("<h2 style='text-align: left; color: Black;'>📈How to overcome these errors/issues.</h2>", unsafe_allow_html=True)
|
52 |
+
st.markdown("<h3 style='text-align: left; color: Black;'>📈Parse error</h3>", unsafe_allow_html=True)
|
53 |
+
i
|
54 |
+
|
55 |
+
# Add Jupyter Notebook link at the end
|
56 |
+
st.markdown(
|
57 |
+
"<h3 style='text-align: left; color: Black;'>📈Learn More in the Jupyter Notebook</h3>",
|
58 |
+
unsafe_allow_html=True
|
59 |
+
)
|
60 |
+
st.markdown(
|
61 |
+
"<p style='font-size: 16px; color: White; font-style: italic;'>"
|
62 |
+
"Click the link below to open the Jupyter Notebook for further exploration."
|
63 |
+
"</p>",
|
64 |
+
unsafe_allow_html=True
|
65 |
+
)
|
66 |
+
# Insert your Jupyter Notebook URL here
|
67 |
+
st.markdown(
|
68 |
+
"<a href='https://colab.research.google.com/drive/1ubmOssUfbrldtVODVsVHSyW7o8Nk7rP9?usp=sharing' target='_blank' style='font-size: 16px; color: white;'>Open Jupyter Notebook</a>",
|
69 |
+
unsafe_allow_html=True
|
70 |
+
)
|