@@ -26,8 +26,8 @@ print(f"Data generated on: {generated_date}")
26
26
```
27
27
28
28
``` python
29
- df_2024 = pd.read_csv(' ../../data/2024_insights/processed/nvd_data_2024.csv' )
30
- df_2023 = pd.read_csv(' ../../data/2024_insights/processed/nvd_data_2023.csv' )
29
+ df_2024 = pd.read_csv(' ../../../ data/2024_insights/processed/nvd_data_2024.csv' )
30
+ df_2023 = pd.read_csv(' ../../../ data/2024_insights/processed/nvd_data_2023.csv' )
31
31
32
32
df_2024.head()
33
33
```
@@ -102,7 +102,7 @@ overview_metrics = {
102
102
}
103
103
104
104
# Save the overview metrics to a JSON file
105
- output_path = " ../../data/2024_insights/output/overview_metrics.json"
105
+ output_path = " ../../../ data/2024_insights/output/overview_metrics.json"
106
106
with open (output_path, " w" ) as f:
107
107
json.dump(overview_metrics, f)
108
108
```
@@ -185,7 +185,7 @@ time_series_metrics = {
185
185
}
186
186
187
187
# Save the time_series_metrics to a JSON file
188
- with open (" ../../data/2024_insights/output/time_series_metrics.json" , " w" ) as f:
188
+ with open (" ../../../ data/2024_insights/output/time_series_metrics.json" , " w" ) as f:
189
189
json.dump(time_series_metrics, f)
190
190
```
191
191
@@ -342,7 +342,7 @@ vendor_product = {
342
342
}
343
343
344
344
# Save the vendor_product metrics to a JSON file
345
- with open (" ../../data/2024_insights/output/vendor_product_analysis.json" , " w" ) as f:
345
+ with open (" ../../../ data/2024_insights/output/vendor_product_analysis.json" , " w" ) as f:
346
346
json.dump(vendor_product, f)
347
347
```
348
348
@@ -462,7 +462,7 @@ cisa_kev = {
462
462
}
463
463
464
464
# Save JSON to File
465
- output_path = " ../../data/2024_insights/output/cisa_kev_analysis.json"
465
+ output_path = " ../../../ data/2024_insights/output/cisa_kev_analysis.json"
466
466
with open (output_path, " w" ) as f:
467
467
json.dump(cisa_kev, f)
468
468
```
@@ -561,7 +561,7 @@ def handle_nan_values(obj):
561
561
specific_cve_details_cleaned = handle_nan_values(specific_cve_details)
562
562
563
563
# Save the specific CVE details to a JSON file
564
- output_path = " ../../data/2024_insights/output/cve_details.json"
564
+ output_path = " ../../../ data/2024_insights/output/cve_details.json"
565
565
with open (output_path, " w" ) as f:
566
566
json.dump(specific_cve_details_cleaned, f)
567
567
```
@@ -649,6 +649,6 @@ top_assigners = {
649
649
}
650
650
651
651
# Save the top_assigners metrics to a JSON file
652
- with open (" ../../data/2024_insights/output/top_assigners.json" , " w" ) as f:
652
+ with open (" ../../../ data/2024_insights/output/top_assigners.json" , " w" ) as f:
653
653
json.dump(top_assigners, f)
654
654
```
0 commit comments