mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-01 19:12:42 +00:00
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.
This commit is contained in:
@@ -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)"
|
||||
]
|
||||
|
Reference in New Issue
Block a user