Sathwikchowdary commited on
Commit
e0d020a
·
verified ·
1 Parent(s): 7eb90c5

Update pages/excel_Files.py

Browse files
Files changed (1) hide show
  1. pages/excel_Files.py +18 -25
pages/excel_Files.py CHANGED
@@ -1,7 +1,8 @@
1
  import streamlit as st
2
  import pandas as pd
3
  import numpy as np
4
- import streamlit as st
 
5
  custom_css = """
6
  <style>
7
  html, body, [data-testid="stAppViewContainer"] {
@@ -27,46 +28,38 @@ custom_css = """
27
 
28
  # Inject the CSS into the app
29
  st.markdown(custom_css, unsafe_allow_html=True)
30
- st.markdown("<h2 style='text-align: centre; color: Black;'>📈What is Excel</h2>", unsafe_allow_html=True)
31
  st.markdown(
32
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
33
- "Excel is a popular tool for data management and analysis, commonly used to organize datasets that can then be used for machine learning tasks. For machine learning, Excel often serves as an initial data source before the data is preprocessed and fed into ML algorithms for tasks such as classification, regression, clustering, etc"
34
  "</p>",
35
  unsafe_allow_html=True
36
  )
37
- st.markdown("<h2 style='text-align: centre; color: Black;'>📈How to read excel files</h2>", unsafe_allow_html=True)
38
  st.markdown(
39
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
40
- "Excel files can be read in various programming languages like python pandas,Matlab,R and Microsoft excel application"
41
  "</p>",
42
  unsafe_allow_html=True
43
  )
44
- st.markdown("<h2 style='text-align: centre; color: Black;'>📈Issues encountered when handling these files</h2>", unsafe_allow_html=True)
45
- st.markdown("1.Corrupted Files")
46
- st.markdown("2.Inconsistent Data Types")
47
- st.markdown("3.Missing or Null Values")
48
- st.markdown("4.Large File Size")
49
- st.markdown("<h2 style='text-align: centre; color: Black;'>📈 how to overcome these errors/issues.</h2>", unsafe_allow_html=True)
50
- st.markdown("<h3 style='text-align: left; color: Black;'>📈Corrupted Files.</h3>", unsafe_allow_html=True)
 
51
  st.markdown(
52
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
53
- "Use Excel's built-in "Open and Repair" feature to try to recover the file"
54
  "</p>",
55
  unsafe_allow_html=True
56
  )
57
- st.markdown("<h3 style='text-align: left; color: Black;'>📈Inconsistent Data Types.</h3>", unsafe_allow_html=True)
58
  st.markdown(
59
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
60
- "Preprocess the data by explicitly converting columns to the correct data type using pandas (e.g., pd.to_numeric() for numeric data).Use Excel’s Data Validation feature to ensure consistent data entry"
61
  "</p>",
62
  unsafe_allow_html=True
63
- )
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
 
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"] {
 
28
 
29
  # Inject the CSS into the app
30
  st.markdown(custom_css, unsafe_allow_html=True)
31
+ st.markdown("<h2 style='text-align: center; color: Black;'>📈What is Excel</h2>", unsafe_allow_html=True)
32
  st.markdown(
33
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
34
+ "Excel is a popular tool for data management and analysis, commonly used to organize datasets that can then be used for machine learning tasks. For machine learning, Excel often serves as an initial data source before the data is preprocessed and fed into ML algorithms for tasks such as classification, regression, clustering, etc."
35
  "</p>",
36
  unsafe_allow_html=True
37
  )
38
+ st.markdown("<h2 style='text-align: center; color: Black;'>📈How to read Excel files</h2>", unsafe_allow_html=True)
39
  st.markdown(
40
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
41
+ "Excel files can be read in various programming languages like Python (pandas), Matlab, R, and Microsoft Excel application."
42
  "</p>",
43
  unsafe_allow_html=True
44
  )
45
+ st.markdown("<h2 style='text-align: center; color: Black;'>📈Issues encountered when handling these files</h2>", unsafe_allow_html=True)
46
+ st.markdown("1. Corrupted Files")
47
+ st.markdown("2. Inconsistent Data Types")
48
+ st.markdown("3. Missing or Null Values")
49
+ st.markdown("4. Large File Size")
50
+
51
+ st.markdown("<h2 style='text-align: center; color: Black;'>📈How to overcome these errors/issues.</h2>", unsafe_allow_html=True)
52
+ st.markdown("<h3 style='text-align: left; color: Black;'>📈Corrupted Files</h3>", unsafe_allow_html=True)
53
  st.markdown(
54
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
55
+ "Use Excel's built-in 'Open and Repair' feature to try to recover the file."
56
  "</p>",
57
  unsafe_allow_html=True
58
  )
59
+ st.markdown("<h3 style='text-align: left; color: Black;'>📈Inconsistent Data Types</h3>", unsafe_allow_html=True)
60
  st.markdown(
61
  "<p style='font-size: 16px; color: White; font-style: italic;'>"
62
+ "Preprocess the data by explicitly converting columns to the correct data type using pandas (e.g., pd.to_numeric() for numeric data). Use Excel’s Data Validation feature to ensure consistent data entry."
63
  "</p>",
64
  unsafe_allow_html=True
65
+ )