Spaces:
Sleeping
Sleeping
Update pages/1_Hotel_Data.py
Browse files- pages/1_Hotel_Data.py +4 -3
pages/1_Hotel_Data.py
CHANGED
|
@@ -48,9 +48,10 @@ if df is not None:
|
|
| 48 |
# Redirect the output of df.info() to a string buffer
|
| 49 |
buffer = StringIO()
|
| 50 |
df.info(buf=buffer)
|
| 51 |
-
|
| 52 |
-
# Display the content in Streamlit
|
| 53 |
-
st.
|
|
|
|
| 54 |
|
| 55 |
st.subheader("Dataset Shape (Rows, Columns):")
|
| 56 |
st.write(df.shape)
|
|
|
|
| 48 |
# Redirect the output of df.info() to a string buffer
|
| 49 |
buffer = StringIO()
|
| 50 |
df.info(buf=buffer)
|
| 51 |
+
|
| 52 |
+
# Display the content in Streamlit as Markdown
|
| 53 |
+
st.subheader("Info of the Dataset:")
|
| 54 |
+
st.markdown(f"```{buffer.getvalue()}```")
|
| 55 |
|
| 56 |
st.subheader("Dataset Shape (Rows, Columns):")
|
| 57 |
st.write(df.shape)
|