leavoigt commited on
Commit
4a76f03
1 Parent(s): 26699d4

Update appStore/vulnerability_analysis.py

Browse files
Files changed (1) hide show
  1. appStore/vulnerability_analysis.py +5 -3
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(df_label_count,
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(df[df['groups_column'].apply(lambda x: 'Other' not in x)])
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