Commit ยท
60ba3a4
1
Parent(s): 848983f
Update utilities/standard_template.py
Browse files
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 |
-
|
| 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
|
| 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 |
|