Spaces:
Running
Running
Update pages/0 FileChecker.py
Browse files- pages/0 FileChecker.py +3 -5
pages/0 FileChecker.py
CHANGED
|
@@ -101,7 +101,7 @@ if uploaded_file is not None:
|
|
| 101 |
coldf = sorted(data.select_dtypes(include=['object']).columns.tolist())
|
| 102 |
container3 = st.container(border=True)
|
| 103 |
|
| 104 |
-
if not coldf:
|
| 105 |
container3.subheader('❌ Topic Modeling', divider='red', anchor=False)
|
| 106 |
container3.write("Unfortunately, you don't have a column containing object in your data. Please check again.")
|
| 107 |
else:
|
|
@@ -129,11 +129,9 @@ if uploaded_file is not None:
|
|
| 129 |
|
| 130 |
#===scattertext===
|
| 131 |
container6 = st.container(border=True)
|
| 132 |
-
if not coldf:
|
| 133 |
container6.subheader('❌ Scattertext', divider='red', anchor=False)
|
| 134 |
container6.write("Unfortunately, you don't have a column containing object in your data. Please check again.")
|
| 135 |
else:
|
| 136 |
container6.subheader('✔️ Scattertext', divider='blue', anchor=False)
|
| 137 |
-
container6.write('Congratulations! You can use Scattertext')
|
| 138 |
-
|
| 139 |
-
|
|
|
|
| 101 |
coldf = sorted(data.select_dtypes(include=['object']).columns.tolist())
|
| 102 |
container3 = st.container(border=True)
|
| 103 |
|
| 104 |
+
if not coldf or data.shape[0] < 2:
|
| 105 |
container3.subheader('❌ Topic Modeling', divider='red', anchor=False)
|
| 106 |
container3.write("Unfortunately, you don't have a column containing object in your data. Please check again.")
|
| 107 |
else:
|
|
|
|
| 129 |
|
| 130 |
#===scattertext===
|
| 131 |
container6 = st.container(border=True)
|
| 132 |
+
if not coldf or data.shape[0] < 2:
|
| 133 |
container6.subheader('❌ Scattertext', divider='red', anchor=False)
|
| 134 |
container6.write("Unfortunately, you don't have a column containing object in your data. Please check again.")
|
| 135 |
else:
|
| 136 |
container6.subheader('✔️ Scattertext', divider='blue', anchor=False)
|
| 137 |
+
container6.write('Congratulations! You can use Scattertext')
|
|
|
|
|
|