Skip to content

Commit

Permalink
docs: fix undefined 'data' variable in document_loader_csv.ipynb (lan…
Browse files Browse the repository at this point in the history
…gchain-ai#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.
  • Loading branch information
ono-hiroki authored and shjunn committed Nov 4, 2024
1 parent 09258cc commit 029186f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/how_to/document_loader_csv.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
]
Expand Down

0 comments on commit 029186f

Please sign in to comment.