Mpavan45 commited on
Commit
d33c021
·
verified ·
1 Parent(s): ad49f99

Update pages/1_Hotel_Data.py

Browse files
Files changed (1) hide show
  1. 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.write(buffer.getvalue())
 
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)