faizhalas commited on
Commit
958ac64
·
verified ·
1 Parent(s): 5a6b812

Update pages/0 FileChecker.py

Browse files
Files changed (1) hide show
  1. pages/0 FileChecker.py +34 -5
pages/0 FileChecker.py CHANGED
@@ -133,7 +133,7 @@ if uploaded_file is not None:
133
  container1.subheader('✔️ Keyword Stem', divider='blue', anchor=False)
134
  container1.write('Congratulations! You can use Keywords Stem')
135
 
136
- #===Visualization===
137
  if 'Publication Year' in data.columns:
138
  data.rename(columns={'Publication Year': 'Year', 'Citing Works Count': 'Cited by',
139
  'Publication Type': 'Document Type', 'Source Title': 'Source title'}, inplace=True)
@@ -148,9 +148,8 @@ if uploaded_file is not None:
148
  else:
149
  container2.subheader('❌ Sunburst', divider='red', anchor=False)
150
  miss_col_str = ', '.join(miss_col)
151
- container2.write(f"Unfortunately, you don't have: {miss_col_str}. Please check again.")
152
 
153
- with col2:
154
  #===check any obj===
155
  coldf = sorted(data.select_dtypes(include=['object']).columns.tolist())
156
  container3 = st.container(border=True)
@@ -162,6 +161,7 @@ if uploaded_file is not None:
162
  container3.subheader('✔️ Topic Modeling', divider='blue', anchor=False)
163
  container3.write('Congratulations! You can use Topic Modeling')
164
 
 
165
  #===Burst===
166
  container4 = st.container(border=True)
167
  if not coldf or 'Year' not in data.columns:
@@ -171,7 +171,6 @@ if uploaded_file is not None:
171
  container4.subheader('✔️ Burst Detection', divider='blue', anchor=False)
172
  container4.write('Congratulations! You can use Burst Detection')
173
 
174
- with col3:
175
  #===bidirected===
176
  container5 = st.container(border=True)
177
  if not keycheck:
@@ -188,4 +187,34 @@ if uploaded_file is not None:
188
  container6.write("Unfortunately, you don't have a column containing object in your data. Please check again.")
189
  else:
190
  container6.subheader('✔️ Scattertext', divider='blue', anchor=False)
191
- container6.write('Congratulations! You can use Scattertext')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  container1.subheader('✔️ Keyword Stem', divider='blue', anchor=False)
134
  container1.write('Congratulations! You can use Keywords Stem')
135
 
136
+ #===Sunburst===
137
  if 'Publication Year' in data.columns:
138
  data.rename(columns={'Publication Year': 'Year', 'Citing Works Count': 'Cited by',
139
  'Publication Type': 'Document Type', 'Source Title': 'Source title'}, inplace=True)
 
148
  else:
149
  container2.subheader('❌ Sunburst', divider='red', anchor=False)
150
  miss_col_str = ', '.join(miss_col)
151
+ container2.write(f"Unfortunately, you don't have: {miss_col_str}. Please check again.")
152
 
 
153
  #===check any obj===
154
  coldf = sorted(data.select_dtypes(include=['object']).columns.tolist())
155
  container3 = st.container(border=True)
 
161
  container3.subheader('✔️ Topic Modeling', divider='blue', anchor=False)
162
  container3.write('Congratulations! You can use Topic Modeling')
163
 
164
+ with col2:
165
  #===Burst===
166
  container4 = st.container(border=True)
167
  if not coldf or 'Year' not in data.columns:
 
171
  container4.subheader('✔️ Burst Detection', divider='blue', anchor=False)
172
  container4.write('Congratulations! You can use Burst Detection')
173
 
 
174
  #===bidirected===
175
  container5 = st.container(border=True)
176
  if not keycheck:
 
187
  container6.write("Unfortunately, you don't have a column containing object in your data. Please check again.")
188
  else:
189
  container6.subheader('✔️ Scattertext', divider='blue', anchor=False)
190
+ container6.write('Congratulations! You can use Scattertext')
191
+
192
+ with col3:
193
+ #===shifterator===
194
+ container7 = st.container(border=True)
195
+ if not coldf or data.shape[0] < 2:
196
+ container7.subheader('❌ Shifterator', divider='red', anchor=False)
197
+ container7.write("Unfortunately, you don't have a column containing object in your data. Please check again.")
198
+ else:
199
+ container7.subheader('✔️ Shifterator', divider='blue', anchor=False)
200
+ container7.write('Congratulations! You can use Shifterator')
201
+
202
+ #===sentiment===
203
+ container8 = st.container(border=True)
204
+ if not coldf or data.shape[0] < 2:
205
+ container8.subheader('❌ Sentiment Analysis', divider='red', anchor=False)
206
+ container8.write("Unfortunately, you don't have a column containing object in your data. Please check again.")
207
+ else:
208
+ container8.subheader('✔️ Sentiment Analysis', divider='blue', anchor=False)
209
+ container8.write('Congratulations! You can use Sentiment Analysis')
210
+
211
+ #===wordcloud===
212
+ container9 = st.container(border=True)
213
+ if not coldf or data.shape[0] < 2:
214
+ container9.subheader('❌ Wordcloud', divider='red', anchor=False)
215
+ container9.write("Unfortunately, you don't have a column containing object in your data. Please check again.")
216
+ else:
217
+ container9.subheader('✔️ Wordcloud', divider='blue', anchor=False)
218
+ container9.write('Congratulations! You can use Wordcloud')
219
+
220
+