Update pages/1_Data_Card_and_Data_collection.py
Browse files
pages/1_Data_Card_and_Data_collection.py
CHANGED
|
@@ -2,7 +2,6 @@ import os
|
|
| 2 |
import pandas as pd
|
| 3 |
import streamlit as st
|
| 4 |
from io import StringIO
|
| 5 |
-
import sys
|
| 6 |
|
| 7 |
# Define a persistent file path for the dataset
|
| 8 |
DATA_FILE_PATH = "consumer_electronics_sales_data.csv"
|
|
@@ -59,11 +58,10 @@ else:
|
|
| 59 |
st.info("No dataset found. Please upload a CSV file.")
|
| 60 |
|
| 61 |
# About the Dataset section with left alignment and larger font
|
| 62 |
-
st.markdown('''
|
| 63 |
# About the Dataset
|
| 64 |
## Description:
|
| 65 |
This dataset provides insights into consumer electronics sales, featuring product categories, brands, prices, customer demographics, purchase behavior, and satisfaction metrics. It aims to analyze factors influencing purchase intent and customer satisfaction in the consumer electronics market.
|
| 66 |
-
|
| 67 |
## Features:
|
| 68 |
- **ProductID**: Unique identifier for each product.
|
| 69 |
- **ProductCategory**: Category of the consumer electronics product (e.g., Smartphones, Laptops).
|
|
@@ -74,13 +72,10 @@ else:
|
|
| 74 |
- **PurchaseFrequency**: Average number of purchases per year.
|
| 75 |
- **CustomerSatisfaction**: Customer satisfaction rating (1 - 5).
|
| 76 |
- **PurchaseIntent** (Target Variable): Intent to purchase.
|
| 77 |
-
|
| 78 |
## Conclusion:
|
| 79 |
This dataset facilitates analysis on consumer behavior and purchase patterns in the consumer electronics sector, providing valuable insights into market dynamics and customer preferences.
|
| 80 |
''')
|
| 81 |
|
| 82 |
-
|
| 83 |
-
|
| 84 |
# Define the URL of the background image (use your own image URL)
|
| 85 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/67441c51a784a9d15cb12871/xpoN_mbctlrQAgRU06EPt.jpeg"
|
| 86 |
|
|
|
|
| 2 |
import pandas as pd
|
| 3 |
import streamlit as st
|
| 4 |
from io import StringIO
|
|
|
|
| 5 |
|
| 6 |
# Define a persistent file path for the dataset
|
| 7 |
DATA_FILE_PATH = "consumer_electronics_sales_data.csv"
|
|
|
|
| 58 |
st.info("No dataset found. Please upload a CSV file.")
|
| 59 |
|
| 60 |
# About the Dataset section with left alignment and larger font
|
| 61 |
+
st.markdown('''
|
| 62 |
# About the Dataset
|
| 63 |
## Description:
|
| 64 |
This dataset provides insights into consumer electronics sales, featuring product categories, brands, prices, customer demographics, purchase behavior, and satisfaction metrics. It aims to analyze factors influencing purchase intent and customer satisfaction in the consumer electronics market.
|
|
|
|
| 65 |
## Features:
|
| 66 |
- **ProductID**: Unique identifier for each product.
|
| 67 |
- **ProductCategory**: Category of the consumer electronics product (e.g., Smartphones, Laptops).
|
|
|
|
| 72 |
- **PurchaseFrequency**: Average number of purchases per year.
|
| 73 |
- **CustomerSatisfaction**: Customer satisfaction rating (1 - 5).
|
| 74 |
- **PurchaseIntent** (Target Variable): Intent to purchase.
|
|
|
|
| 75 |
## Conclusion:
|
| 76 |
This dataset facilitates analysis on consumer behavior and purchase patterns in the consumer electronics sector, providing valuable insights into market dynamics and customer preferences.
|
| 77 |
''')
|
| 78 |
|
|
|
|
|
|
|
| 79 |
# Define the URL of the background image (use your own image URL)
|
| 80 |
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/67441c51a784a9d15cb12871/xpoN_mbctlrQAgRU06EPt.jpeg"
|
| 81 |
|