fix: escape csv field to avoid error on empty fields

This commit is contained in:
2025-08-17 13:39:19 +02:00
parent ed60f9deff
commit 3122c92f5e
4 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -164,5 +164,5 @@ class DataLoader:
if create_dirs:
filepath.parent.mkdir(parents=True, exist_ok=True)
df.to_csv(filepath, index=False, encoding="utf-8")
df.to_csv(filepath, index=False, encoding="utf-8", sep=",", quoting=1)
logging.info(f"Saved {len(df)} rows to {filepath}")