leavoigt commited on
Commit
b5de5f6
1 Parent(s): 4bf4856

Update appStore/vulnerability_analysis.py

Browse files
Files changed (1) hide show
  1. appStore/vulnerability_analysis.py +4 -13
appStore/vulnerability_analysis.py CHANGED
@@ -130,23 +130,14 @@ def vulnerability_display():
130
  st.write("df_label_count")
131
 
132
  # Bar chart
133
- fig = px.bar(df,
134
  x='Label',
135
  y='Count',
136
  title='How many references have been found to each group?',
137
  labels={'Count': 'Frequency'})
138
-
139
- # # Configure graph
140
- # fig = px.pie(df_labels,
141
- # names="Label",
142
- # values="Count",
143
- # title='Label Counts',
144
- # hover_name="Count",
145
- # color_discrete_sequence=px.colors.qualitative.Plotly
146
- # )
147
-
148
- # #Show plot
149
- # st.plotly_chart(fig, use_container_width=True)
150
 
151
  # ### Table
152
  st.write(df[df['groups_column'].apply(lambda x: 'Other' not in x)])
 
130
  st.write("df_label_count")
131
 
132
  # Bar chart
133
+ fig = px.bar(df_vul,
134
  x='Label',
135
  y='Count',
136
  title='How many references have been found to each group?',
137
  labels={'Count': 'Frequency'})
138
+
139
+ #Show plot
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)])