Mpavan45 commited on
Commit
413f523
·
verified ·
1 Parent(s): b0f15b9

Update pages/2_Simple_EDA.py

Browse files
Files changed (1) hide show
  1. pages/2_Simple_EDA.py +6 -1
pages/2_Simple_EDA.py CHANGED
@@ -14,7 +14,12 @@ if df is not None:
14
  st.write(df.head())
15
 
16
  st.subheader("Info of the Dataset:")
17
- st.text(df.info())
 
 
 
 
 
18
 
19
  st.subheader("Dataset Description:")
20
  st.write(df.describe())
 
14
  st.write(df.head())
15
 
16
  st.subheader("Info of the Dataset:")
17
+ # Redirect the output of df.info() to a string buffer
18
+ buffer = StringIO()
19
+ data.info(buf=buffer)
20
+
21
+ # Display the content in Streamlit
22
+ st.write(buffer.getvalue())
23
 
24
  st.subheader("Dataset Description:")
25
  st.write(df.describe())