Spaces:
Sleeping
Sleeping
Update pages/3_EDA and Feature Engineering.py
Browse files
pages/3_EDA and Feature Engineering.py
CHANGED
|
@@ -17,7 +17,7 @@ st.markdown(
|
|
| 17 |
<style>
|
| 18 |
.stApp {{
|
| 19 |
background-image: url("{background_image_url}");
|
| 20 |
-
background-size:
|
| 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 */
|
|
@@ -108,7 +108,7 @@ st.write("""
|
|
| 108 |
st.write("Further steps will include generating visualizations and statistical tests to explore relationships between features in more detail.")
|
| 109 |
|
| 110 |
# Access dataset from session state
|
| 111 |
-
data= st.session_state.get("
|
| 112 |
|
| 113 |
if data is not None:
|
| 114 |
st.subheader("Dataset Preview:")
|
|
@@ -118,10 +118,11 @@ if data is not None:
|
|
| 118 |
st.subheader("Info of the Dataset:")
|
| 119 |
# Redirect the output of df.info() to a string buffer
|
| 120 |
buffer = StringIO()
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
# Display the content in Streamlit
|
| 124 |
-
st.
|
|
|
|
| 125 |
|
| 126 |
st.subheader("Dataset Statistics:")
|
| 127 |
st.write(data.describe())
|
|
|
|
| 17 |
<style>
|
| 18 |
.stApp {{
|
| 19 |
background-image: url("{background_image_url}");
|
| 20 |
+
background-size: 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 */
|
|
|
|
| 108 |
st.write("Further steps will include generating visualizations and statistical tests to explore relationships between features in more detail.")
|
| 109 |
|
| 110 |
# Access dataset from session state
|
| 111 |
+
data= st.session_state.get("df")
|
| 112 |
|
| 113 |
if data is not None:
|
| 114 |
st.subheader("Dataset Preview:")
|
|
|
|
| 118 |
st.subheader("Info of the Dataset:")
|
| 119 |
# Redirect the output of df.info() to a string buffer
|
| 120 |
buffer = StringIO()
|
| 121 |
+
df.info(buf=buffer)
|
| 122 |
+
|
| 123 |
+
# Display the content in Streamlit as Markdown
|
| 124 |
+
st.subheader("Info of the Dataset:")
|
| 125 |
+
st.markdown(f"```{buffer.getvalue()}```")
|
| 126 |
|
| 127 |
st.subheader("Dataset Statistics:")
|
| 128 |
st.write(data.describe())
|