Spaces:
Sleeping
Sleeping
Update pages/3_EDA and Feature Engineering.py
Browse files
pages/3_EDA and Feature Engineering.py
CHANGED
|
@@ -17,9 +17,9 @@ st.markdown(
|
|
| 17 |
<style>
|
| 18 |
.stApp {{
|
| 19 |
background-image: url("{background_image_url}");
|
| 20 |
-
background-size: auto; /*
|
| 21 |
-
background-repeat: repeat; /*
|
| 22 |
-
background-position: top
|
| 23 |
background-attachment: fixed; /* Keeps the background fixed as you scroll */
|
| 24 |
}}
|
| 25 |
|
|
@@ -45,13 +45,13 @@ st.markdown(
|
|
| 45 |
.stMarkdown {{
|
| 46 |
color: white; /* White text to ensure visibility */
|
| 47 |
font-size: 100px; /* Adjust font size for readability */
|
| 48 |
-
# text-align: center; /* Center align text */
|
| 49 |
}}
|
| 50 |
</style>
|
| 51 |
""",
|
| 52 |
unsafe_allow_html=True
|
| 53 |
)
|
| 54 |
|
|
|
|
| 55 |
# Title of the Streamlit app
|
| 56 |
st.title("Exploratory Data Analysis (EDA) on Agoda Hotel Dataset")
|
| 57 |
|
|
@@ -727,3 +727,48 @@ if data is not None:
|
|
| 727 |
else:
|
| 728 |
st.warning("No dataset found in session state. Please load the dataset into `st.session_state['data']`.")
|
| 729 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
<style>
|
| 18 |
.stApp {{
|
| 19 |
background-image: url("{background_image_url}");
|
| 20 |
+
background-size: 100% auto; /* Ensure the image width is 100% of the screen, and the height scales proportionally */
|
| 21 |
+
background-repeat: repeat-y; /* Repeat only vertically */
|
| 22 |
+
background-position: top center; /* Start repeating from the top center */
|
| 23 |
background-attachment: fixed; /* Keeps the background fixed as you scroll */
|
| 24 |
}}
|
| 25 |
|
|
|
|
| 45 |
.stMarkdown {{
|
| 46 |
color: white; /* White text to ensure visibility */
|
| 47 |
font-size: 100px; /* Adjust font size for readability */
|
|
|
|
| 48 |
}}
|
| 49 |
</style>
|
| 50 |
""",
|
| 51 |
unsafe_allow_html=True
|
| 52 |
)
|
| 53 |
|
| 54 |
+
|
| 55 |
# Title of the Streamlit app
|
| 56 |
st.title("Exploratory Data Analysis (EDA) on Agoda Hotel Dataset")
|
| 57 |
|
|
|
|
| 727 |
else:
|
| 728 |
st.warning("No dataset found in session state. Please load the dataset into `st.session_state['data']`.")
|
| 729 |
|
| 730 |
+
st.markdown(
|
| 731 |
+
"""
|
| 732 |
+
<style>
|
| 733 |
+
.custom-button {
|
| 734 |
+
display: inline-block;
|
| 735 |
+
padding: 5px 10px;
|
| 736 |
+
font-size: 14px;
|
| 737 |
+
color: #ffffff;
|
| 738 |
+
background-color: #4CAF50;
|
| 739 |
+
border: none;
|
| 740 |
+
border-radius: 5px;
|
| 741 |
+
text-align: center;
|
| 742 |
+
text-decoration: none;
|
| 743 |
+
transition: background-color 0.3s ease, transform 0.2s ease;
|
| 744 |
+
cursor: pointer;
|
| 745 |
+
}
|
| 746 |
+
.custom-button:hover {
|
| 747 |
+
background-color: #45a049;
|
| 748 |
+
transform: scale(1.05);
|
| 749 |
+
}
|
| 750 |
+
.button-container {
|
| 751 |
+
display: flex;
|
| 752 |
+
justify-content: space-between;
|
| 753 |
+
margin-top: 20px;
|
| 754 |
+
}
|
| 755 |
+
</style>
|
| 756 |
+
""",
|
| 757 |
+
unsafe_allow_html=True,
|
| 758 |
+
)
|
| 759 |
+
import streamlit as st
|
| 760 |
+
|
| 761 |
+
st.title("Exploratory Data Analysis (EDA) and Feature Engineering")
|
| 762 |
+
|
| 763 |
+
st.write("Conduct EDA and derive features for the model here.")
|
| 764 |
+
|
| 765 |
+
# Navigation Buttons
|
| 766 |
+
st.markdown(
|
| 767 |
+
"""
|
| 768 |
+
<div class="button-container">
|
| 769 |
+
<a href="pages/2_Data_Cleaning_and_Processing" target="_self" class="custom-button">Previous ⏮️</a>
|
| 770 |
+
<a href="pages/4_Model_Creation_and_Evaluation" target="_self" class="custom-button">Next ⏭️</a>
|
| 771 |
+
</div>
|
| 772 |
+
""",
|
| 773 |
+
unsafe_allow_html=True,
|
| 774 |
+
)
|