Sathwikchowdary commited on
Commit
d0c3fca
·
verified ·
1 Parent(s): 7915446

Update pages/info_of_CSV.py

Browse files
Files changed (1) hide show
  1. pages/info_of_CSV.py +14 -81
pages/info_of_CSV.py CHANGED
@@ -23,11 +23,21 @@ custom_css = """
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;'>"
@@ -35,6 +45,7 @@ st.markdown(
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;'>"
@@ -42,88 +53,10 @@ st.markdown(
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
- st.markdown(
54
- "<p style='font-size: 16px; color: White; font-style: italic;'>"
55
- "This occurs when a program fails to interpret or process data correctly, often due to syntax issues or incompatible file formats."
56
- "</p>",
57
- unsafe_allow_html=True
58
- )
59
- st.markdown("Common Causes:")
60
- st.markdown(
61
- "<p style='font-size: 16px; color: White; font-style: italic;'>"
62
- "Invalid or incorrect syntax in the input data."
63
- "Missing or unexpected tokens in code or configuration files."
64
- "File format mismatch."
65
- "</p>",
66
- unsafe_allow_html=True
67
- )
68
- st.markdown("<h3 style='text-align: left; color: Black;'>📈Unicode Decode error</h3>", unsafe_allow_html=True)
69
- st.markdown(
70
- "<p style='font-size: 16px; color: White; font-style: italic;'>"
71
- "This occurs when a program fails to interpret a sequence of bytes as valid Unicode text."
72
- "</p>",
73
- unsafe_allow_html=True
74
- )
75
- st.markdown("Common Causes:")
76
- st.markdown(
77
- "<p style='font-size: 16px; color: White; font-style: italic;'>"
78
- "Trying to decode a file or string with the wrong encoding (e.g., reading UTF-8 data as ASCII)."
79
- "Non-UTF-8 characters in the input data."
80
- "Corrupted or binary files being read as text."
81
- "</p>",
82
- unsafe_allow_html=True
83
- )
84
- st.markdown("<h3 style='text-align: left; color: Black;'>📈 Out of Memory error</h3>", unsafe_allow_html=True)
85
  st.markdown(
86
- "<p style='font-size: 16px; color: White; font-style: italic;'>"
87
- "This occurs when a program tries to allocate more memory than is available."
88
- "</p>",
89
- unsafe_allow_html=True
90
- )
91
- st.markdown("Common Causes:")
92
- st.markdown(
93
- "<p style='font-size: 16px; color: White; font-style: italic;'>"
94
- "Processing large datasets or files without sufficient memory."
95
- "Infinite loops or memory leaks."
96
- "Excessive recursive function calls."
97
- "</p>",
98
- unsafe_allow_html=True
99
- )
100
- st.markdown("<h3 style='text-align: left; color: Black;'>📈 Large File Size error</h3>", unsafe_allow_html=True)
101
- st.markdown(
102
- "<p style='font-size: 16px; color: White; font-style: italic;'>"
103
- "Handling or processing large files can cause performance or storage issues."
104
- "</p>",
105
  unsafe_allow_html=True
106
  )
107
- st.markdown("Common Causes:")
108
- st.markdown(
109
- "<p style='font-size: 16px; color: White; font-style: italic;'>"
110
- "Slow read/write operations."
111
- "Difficulty loading the file into memory."
112
- "Limited storage space for saving files."
113
- "</p>",
114
- unsafe_allow_html=True
115
- )
116
- # Insert your Jupyter Notebook URL here
117
- st.markdown(
118
- "<a href=http://localhost:8888/notebooks/CSV.ipynb' target='_blank' style='font-size: 16px; color: white;'>Open Jupyter Notebook</a>",
119
- unsafe_allow_html=True
120
- )
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
 
23
  p {
24
  color: #FFFFFF; /* White text for paragraphs */
25
  }
26
+ a {
27
+ color: #FFD700; /* Gold color for links */
28
+ text-decoration: none;
29
+ font-weight: bold;
30
+ }
31
+ a:hover {
32
+ text-decoration: underline;
33
+ }
34
  </style>
35
  """
36
 
37
  # Inject the CSS into the app
38
  st.markdown(custom_css, unsafe_allow_html=True)
39
+
40
+ # Content
41
  st.markdown("<h2 style='text-align: left; color: Black;'>📈What is CSV </h2>", unsafe_allow_html=True)
42
  st.markdown(
43
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
 
45
  "</p>",
46
  unsafe_allow_html=True
47
  )
48
+
49
  st.markdown("<h2 style='text-align: left; color: Black;'>📈How to read CSV files</h2>", unsafe_allow_html=True)
50
  st.markdown(
51
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
 
53
  "</p>",
54
  unsafe_allow_html=True
55
  )
 
 
 
 
 
56
 
57
+ # Adding the Jupyter Notebook link
58
+ jupyter_link = "http://localhost:8888/notebooks/CSV.ipynb"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  st.markdown(
60
+ f"<a href='{jupyter_link}' target='_blank' style='font-size: 16px;'>Open Jupyter Notebook</a>",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  unsafe_allow_html=True
62
  )