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

Update utilities/standard_template.py

Browse files
Files changed (1) hide show
  1. utilities/standard_template.py +2 -2
utilities/standard_template.py CHANGED
@@ -1,6 +1,6 @@
1
  import streamlit as st
2
  from utilities.components import get_data, choose_algo, get_plot
3
- from types import NoneType
4
  import pandas as pd
5
 
6
 
@@ -33,7 +33,7 @@ class Page:
33
  with col1.container():
34
  data = get_data(self.title)
35
  if type(data) == tuple:
36
- if self.title == 'Clustering' and type(data[0]) is not NoneType:
37
  st.dataframe(data[0], use_container_width=True,height=280)
38
  self.data = data
39
 
 
1
  import streamlit as st
2
  from utilities.components import get_data, choose_algo, get_plot
3
+
4
  import pandas as pd
5
 
6
 
 
33
  with col1.container():
34
  data = get_data(self.title)
35
  if type(data) == tuple:
36
+ if self.title == 'Clustering' and data[0] is not None:
37
  st.dataframe(data[0], use_container_width=True,height=280)
38
  self.data = data
39