Skip to content

Commit

Permalink
Update lineterminator
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrl committed Feb 5, 2025
1 parent db4154c commit 30573c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion haystack/components/preprocessors/csv_document_cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ def run(self, documents: List[Document]) -> Dict[str, List[Document]]:
final_df = pd.concat([ignored_columns, final_df], axis=1)

cleaned_documents.append(
Document(content=final_df.to_csv(index=False, header=False), meta=document.meta.copy())
Document(
content=final_df.to_csv(index=False, header=False, lineterminator="\n"), meta=document.meta.copy()
)
)
return {"documents": cleaned_documents}

0 comments on commit 30573c8

Please sign in to comment.