Spaces:
Sleeping
Sleeping
Update appStore/vulnerability_analysis.py
Browse files
appStore/vulnerability_analysis.py
CHANGED
@@ -127,10 +127,12 @@ def vulnerability_display():
|
|
127 |
|
128 |
# Merge the label counts with the df_label DataFrame
|
129 |
df_label_count = df_labels.merge(df_label_count, on='Label', how='left')
|
130 |
-
st.write("df_label_count")
|
131 |
|
|
|
|
|
|
|
132 |
# Bar chart
|
133 |
-
fig = px.bar(
|
134 |
x='Label',
|
135 |
y='Count',
|
136 |
title='How many references have been found to each group?',
|
@@ -140,5 +142,5 @@ def vulnerability_display():
|
|
140 |
st.plotly_chart(fig, use_container_width=True)
|
141 |
|
142 |
# ### Table
|
143 |
-
st.write(
|
144 |
|
|
|
127 |
|
128 |
# Merge the label counts with the df_label DataFrame
|
129 |
df_label_count = df_labels.merge(df_label_count, on='Label', how='left')
|
|
|
130 |
|
131 |
+
# Exclude the "Other" group
|
132 |
+
df_bar_chart = df[df['Label'] != 'Other']
|
133 |
+
|
134 |
# Bar chart
|
135 |
+
fig = px.bar(df_bar_chart,
|
136 |
x='Label',
|
137 |
y='Count',
|
138 |
title='How many references have been found to each group?',
|
|
|
142 |
st.plotly_chart(fig, use_container_width=True)
|
143 |
|
144 |
# ### Table
|
145 |
+
st.write(df_vul[df_vul['Vulnerability Label'].apply(lambda x: 'Other' not in x)])
|
146 |
|