MatthiasPi commited on
Commit
ba3e45c
ยท
1 Parent(s): 60ba3a4

Update analysis/exploration.py

Browse files
Files changed (1) hide show
  1. analysis/exploration.py +2 -2
analysis/exploration.py CHANGED
@@ -1,7 +1,7 @@
1
  import streamlit as st
2
  from utilities.template_helpers import upload_data
3
  import pandas as pd
4
- from types import NoneType
5
  from pandas_profiling import ProfileReport
6
  from streamlit_pandas_profiling import st_profile_report
7
  import sys
@@ -12,7 +12,7 @@ def render():
12
  df = None
13
  with col1.container():
14
  df = upload_data()
15
- if type(df) is NoneType:
16
  return
17
  st.dataframe(df.describe())
18
  with col2.container():
 
1
  import streamlit as st
2
  from utilities.template_helpers import upload_data
3
  import pandas as pd
4
+
5
  from pandas_profiling import ProfileReport
6
  from streamlit_pandas_profiling import st_profile_report
7
  import sys
 
12
  df = None
13
  with col1.container():
14
  df = upload_data()
15
+ if df is None:
16
  return
17
  st.dataframe(df.describe())
18
  with col2.container():