Spaces:
Sleeping
Sleeping
Update pages/1_Data_Card_and_Data_collection.py
Browse files
pages/1_Data_Card_and_Data_collection.py
CHANGED
|
@@ -4,10 +4,10 @@ import streamlit as st
|
|
| 4 |
from io import StringIO
|
| 5 |
|
| 6 |
# Persistent file path for the dataset
|
| 7 |
-
DATA_FILE_PATH = "
|
| 8 |
|
| 9 |
# Page Title
|
| 10 |
-
st.markdown("<h1 style='text-align:center; color:white;'>
|
| 11 |
|
| 12 |
# Function to load the dataset from the disk
|
| 13 |
def load_dataset():
|
|
@@ -55,15 +55,17 @@ if df is not None:
|
|
| 55 |
|
| 56 |
| **Feature** | **Description** | **Example** |
|
| 57 |
|-------------------------|--------------------------------------------------------------------|------------------------------|
|
| 58 |
-
| **
|
| 59 |
-
| **
|
| 60 |
-
| **
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
|
| 66 |
-
|
|
|
|
|
|
|
| 67 |
''')
|
| 68 |
|
| 69 |
|
|
@@ -72,7 +74,7 @@ else:
|
|
| 72 |
st.info("No dataset found. Please upload a CSV file.")
|
| 73 |
|
| 74 |
# Define the URL of the background image (use your own image URL)
|
| 75 |
-
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/
|
| 76 |
|
| 77 |
# Apply custom CSS for the background image and overlay
|
| 78 |
st.markdown(
|
|
@@ -111,5 +113,4 @@ st.markdown(
|
|
| 111 |
if st.button("Previous ⏮️"):
|
| 112 |
st.switch_page("pages/0_Problem-Statement_and_Aim.py")
|
| 113 |
if st.button("Next ⏭️"):
|
| 114 |
-
st.switch_page("pages/2_Data_CLeaning_and_Preprocessing.py")
|
| 115 |
-
|
|
|
|
| 4 |
from io import StringIO
|
| 5 |
|
| 6 |
# Persistent file path for the dataset
|
| 7 |
+
DATA_FILE_PATH = "customer-churn-prediction.csv"
|
| 8 |
|
| 9 |
# Page Title
|
| 10 |
+
st.markdown("<h1 style='text-align:center; color:white;'>customer-churn-prediction Data Set</h1>", unsafe_allow_html=True)
|
| 11 |
|
| 12 |
# Function to load the dataset from the disk
|
| 13 |
def load_dataset():
|
|
|
|
| 55 |
|
| 56 |
| **Feature** | **Description** | **Example** |
|
| 57 |
|-------------------------|--------------------------------------------------------------------|------------------------------|
|
| 58 |
+
| **creditscore** | Credit score of the customer, typically ranging from 300 to 850. | 750
|
| 59 |
+
| **geography** | Country or region of the customer. | France, Germany, Spain
|
| 60 |
+
| **gender** | Gender of the customer. | Male, Female
|
| 61 |
+
|**age** | Age of the customer. | 45
|
| 62 |
+
|**tenure** | Number of years the customer has been with the organization. | 5
|
| 63 |
+
|**balance** | Account balance of the customer. |125000.50
|
| 64 |
+
|**numofproducts** | Number of products the customer is using with the company. | 2
|
| 65 |
+
|**hascrcard** | Indicates whether the customer has a credit card |(1 - Yes, 0 - No). 1
|
| 66 |
+
|**isactivemember** | Indicates whether the customer is an active member |(1 - Yes, 0 - No). 0
|
| 67 |
+
|**estimatedsalary** |Annual estimated salary of the customer. |70000.00
|
| 68 |
+
|**exited Target variable**| Indicates if the customer has exited |(1 - Yes, 0 - No). 1
|
| 69 |
''')
|
| 70 |
|
| 71 |
|
|
|
|
| 74 |
st.info("No dataset found. Please upload a CSV file.")
|
| 75 |
|
| 76 |
# Define the URL of the background image (use your own image URL)
|
| 77 |
+
background_image_url = "https://cdn-uploads.huggingface.co/production/uploads/67441c51a784a9d15cb12871/xpoN_mbctlrQAgRU06EPt.jpeg"
|
| 78 |
|
| 79 |
# Apply custom CSS for the background image and overlay
|
| 80 |
st.markdown(
|
|
|
|
| 113 |
if st.button("Previous ⏮️"):
|
| 114 |
st.switch_page("pages/0_Problem-Statement_and_Aim.py")
|
| 115 |
if st.button("Next ⏭️"):
|
| 116 |
+
st.switch_page("pages/2_Data_CLeaning_and_Preprocessing.py")
|
|
|