Update app.py
Browse files
app.py
CHANGED
|
@@ -232,8 +232,8 @@ choices.insert(0,'None')
|
|
| 232 |
|
| 233 |
st.sidebar.subheader("Topics")
|
| 234 |
show_clusters = {i:len(clusters[i]) for i in clusters.keys()}
|
| 235 |
-
cdf = pd.DataFrame(show_clusters)
|
| 236 |
-
st.sidebar.table(cdf
|
| 237 |
"""
|
| 238 |
show_clusters.sort(key=lambda x: len(x[1]), reverse=True)
|
| 239 |
for i in show_clusters:
|
|
|
|
| 232 |
|
| 233 |
st.sidebar.subheader("Topics")
|
| 234 |
show_clusters = {i:len(clusters[i]) for i in clusters.keys()}
|
| 235 |
+
cdf = pd.DataFrame(show_clusters, index=[i for i in range(len(show_clusters))])
|
| 236 |
+
st.sidebar.table(cdf)
|
| 237 |
"""
|
| 238 |
show_clusters.sort(key=lambda x: len(x[1]), reverse=True)
|
| 239 |
for i in show_clusters:
|