Update pages/1_Data_Card_and_Data_collection.py
Browse files
pages/1_Data_Card_and_Data_collection.py
CHANGED
|
@@ -7,7 +7,7 @@ from io import StringIO
|
|
| 7 |
DATA_FILE_PATH = "consumer_electronics_sales_data.csv"
|
| 8 |
|
| 9 |
# Page Title
|
| 10 |
-
st.markdown("<h1 style='text-align:center; color:
|
| 11 |
|
| 12 |
# Function to load the dataset from the disk
|
| 13 |
def load_dataset():
|
|
@@ -50,8 +50,7 @@ if df is not None:
|
|
| 50 |
|
| 51 |
st.subheader("Dataset Shape (Rows, Columns):")
|
| 52 |
st.write(df.shape)
|
| 53 |
-
|
| 54 |
-
st.info("No dataset found. Please upload a CSV file.")
|
| 55 |
st.markdown('''
|
| 56 |
# About the Dataset
|
| 57 |
## Description:
|
|
@@ -70,6 +69,9 @@ else:
|
|
| 70 |
This dataset facilitates analysis on consumer behavior and purchase patterns in the consumer electronics sector, providing valuable insights into market dynamics and customer preferences.
|
| 71 |
''')
|
| 72 |
|
|
|
|
|
|
|
|
|
|
| 73 |
# Define the URL of the background image (use your own image URL)
|
| 74 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/67441c51a784a9d15cb12871/xpoN_mbctlrQAgRU06EPt.jpeg"
|
| 75 |
|
|
@@ -98,17 +100,8 @@ st.markdown(
|
|
| 98 |
|
| 99 |
/* Styling the content to ensure text visibility */
|
| 100 |
.stMarkdown {{
|
| 101 |
-
color:
|
| 102 |
-
font-size:
|
| 103 |
-
text-align: left;
|
| 104 |
-
width: 90%;
|
| 105 |
-
margin: 0 auto;
|
| 106 |
-
}}
|
| 107 |
-
|
| 108 |
-
/* Center align the dataset and info */
|
| 109 |
-
.stTable {{
|
| 110 |
-
margin: 0 auto;
|
| 111 |
-
text-align: center;
|
| 112 |
}}
|
| 113 |
</style>
|
| 114 |
""",
|
|
|
|
| 7 |
DATA_FILE_PATH = "consumer_electronics_sales_data.csv"
|
| 8 |
|
| 9 |
# Page Title
|
| 10 |
+
st.markdown("<h1 style='text-align:center; color:yellow;'>Electronics Sales Data Set</h1>", unsafe_allow_html=True)
|
| 11 |
|
| 12 |
# Function to load the dataset from the disk
|
| 13 |
def load_dataset():
|
|
|
|
| 50 |
|
| 51 |
st.subheader("Dataset Shape (Rows, Columns):")
|
| 52 |
st.write(df.shape)
|
| 53 |
+
|
|
|
|
| 54 |
st.markdown('''
|
| 55 |
# About the Dataset
|
| 56 |
## Description:
|
|
|
|
| 69 |
This dataset facilitates analysis on consumer behavior and purchase patterns in the consumer electronics sector, providing valuable insights into market dynamics and customer preferences.
|
| 70 |
''')
|
| 71 |
|
| 72 |
+
else:
|
| 73 |
+
st.info("No dataset found. Please upload a CSV file.")
|
| 74 |
+
|
| 75 |
# Define the URL of the background image (use your own image URL)
|
| 76 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/67441c51a784a9d15cb12871/xpoN_mbctlrQAgRU06EPt.jpeg"
|
| 77 |
|
|
|
|
| 100 |
|
| 101 |
/* Styling the content to ensure text visibility */
|
| 102 |
.stMarkdown {{
|
| 103 |
+
color: black;
|
| 104 |
+
font-size: 30px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
}}
|
| 106 |
</style>
|
| 107 |
""",
|