week2
This commit is contained in:
15
src/pipeline/deliverability_check.py
Normal file
15
src/pipeline/deliverability_check.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# src/pipeline/deliverability_check.py
|
||||
import pandas as pd
|
||||
import os
|
||||
from .config_loader import config
|
||||
|
||||
def run_deliverability_check():
|
||||
input_file = os.path.join(config["output_dir"], "unified_dataset_cleaned.csv")
|
||||
df = pd.read_csv(input_file)
|
||||
|
||||
# Basic simulation of SPF/DKIM validation
|
||||
df["deliverable"] = df["email"].str.contains("@")
|
||||
|
||||
output_file = os.path.join(config["output_dir"], "unified_dataset_deliverable.csv")
|
||||
df.to_csv(output_file, index=False)
|
||||
return df
|
||||
Reference in New Issue
Block a user