Spaces:
Runtime error
Runtime error
adding counts for docs
Browse files
app.py
CHANGED
@@ -84,12 +84,12 @@ def visualization(path_data, lang, num_docs, num_docs_for_words):
|
|
84 |
cond = np.all(cond, axis=0)
|
85 |
|
86 |
data_not_keep = data.loc[np.invert(cond)]
|
87 |
-
st.subheader("Filtered data")
|
88 |
st.markdown("Click on a column to sort by it, place the cursor on the text to display it.")
|
89 |
st.dataframe(data_not_keep)
|
90 |
|
91 |
data_keep = data.loc[cond]
|
92 |
-
st.subheader("Kept data")
|
93 |
st.markdown("Click on a column to sort by it, place the cursor on the text to display it.")
|
94 |
st.dataframe(data_keep)
|
95 |
|
|
|
84 |
cond = np.all(cond, axis=0)
|
85 |
|
86 |
data_not_keep = data.loc[np.invert(cond)]
|
87 |
+
st.subheader(f"Filtered data: {np.invert(cond).sum()} docs")
|
88 |
st.markdown("Click on a column to sort by it, place the cursor on the text to display it.")
|
89 |
st.dataframe(data_not_keep)
|
90 |
|
91 |
data_keep = data.loc[cond]
|
92 |
+
st.subheader(f"Kept data: {cond.sum()} docs")
|
93 |
st.markdown("Click on a column to sort by it, place the cursor on the text to display it.")
|
94 |
st.dataframe(data_keep)
|
95 |
|