IOTesting #19
+3
-9
@@ -433,15 +433,9 @@ def menu_prepare_to_enforce():
|
||||
|
||||
allowbyhash.to_parquet(f"parquet\\final_hash_approvals_{first_policy}_{second_policy}.parquet", index=False)
|
||||
|
||||
easyview = allowbyhash.groupby('sha256').agg(list).reset_index()
|
||||
# Deduplicate all list columns in easyview
|
||||
for col in easyview.columns:
|
||||
if col != 'sha256': # Skip the grouping column
|
||||
easyview[col] = easyview[col].apply(lambda x: list(set(x)))
|
||||
|
||||
easyview = easyview.sort_values(by=["reputation_status", "filename"])
|
||||
|
||||
ct.style_dataframe_dark(easyview, f"preflight\\final_hash_approvals_{first_policy}_{second_policy}.html")
|
||||
allowbyhash.sort_values(by=["filename"])
|
||||
|
||||
ct.style_dataframe_dark(allowbyhash, f"preflight\\final_hash_approvals_{first_policy}_{second_policy}.html")
|
||||
ct.style_dataframe_dark(pathexclusions, f"preflight\\final_path_exclusions_{first_policy}_{second_policy}.html")
|
||||
|
||||
|
||||
|
||||
@@ -18,11 +18,6 @@ import os
|
||||
import ast
|
||||
import re
|
||||
|
||||
import os
|
||||
import pandas as pd
|
||||
|
||||
import os
|
||||
import pandas as pd
|
||||
|
||||
def split_filepaths_grouped(df, col="filename", group_parts=3, min_parts=3):
|
||||
def clean_split(path):
|
||||
|
||||
Reference in New Issue
Block a user