From 029186fcce908f166f51b55d2413ddd879317900 Mon Sep 17 00:00:00 2001 From: ono-hiroki <86904208+ono-hiroki@users.noreply.github.com> Date: Mon, 4 Nov 2024 23:10:56 +0900 Subject: [PATCH] docs: fix undefined 'data' variable in document_loader_csv.ipynb (#27872) **Description:** This PR addresses an issue in the CSVLoader example where data is not defined, causing a NameError. The line `data = loader.load()` is added to correctly assign the output of loader.load() to the data variable. --- docs/docs/how_to/document_loader_csv.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/how_to/document_loader_csv.ipynb b/docs/docs/how_to/document_loader_csv.ipynb index ebab8d287a1f1..fa2b5f77165eb 100644 --- a/docs/docs/how_to/document_loader_csv.ipynb +++ b/docs/docs/how_to/document_loader_csv.ipynb @@ -157,7 +157,7 @@ " temp_file_path = temp_file.name\n", "\n", "loader = CSVLoader(file_path=temp_file_path)\n", - "loader.load()\n", + "data = loader.load()\n", "for record in data[:2]:\n", " print(record)" ]