Spaces:
Sleeping
Sleeping
Update appStore/vulnerability_analysis.py
Browse files
appStore/vulnerability_analysis.py
CHANGED
|
@@ -130,8 +130,9 @@ def vulnerability_display():
|
|
| 130 |
# Merge the label counts with the df_label DataFrame
|
| 131 |
df_label_count = df_labels.merge(df_label_count, on='Label', how='left')
|
| 132 |
|
| 133 |
-
# Exclude the "Other" group
|
| 134 |
df_bar_chart = df_label_count[df_label_count['Label'] != 'Other']
|
|
|
|
| 135 |
|
| 136 |
# Bar chart
|
| 137 |
fig = go.Figure()
|
|
|
|
| 130 |
# Merge the label counts with the df_label DataFrame
|
| 131 |
df_label_count = df_labels.merge(df_label_count, on='Label', how='left')
|
| 132 |
|
| 133 |
+
# Exclude the "Other" group and all groups that do not have a label
|
| 134 |
df_bar_chart = df_label_count[df_label_count['Label'] != 'Other']
|
| 135 |
+
df_bar_chart = df_label_count[df_label_count['Count'] != 0]
|
| 136 |
|
| 137 |
# Bar chart
|
| 138 |
fig = go.Figure()
|