mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-26 16:43:35 +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:
parent
3b0b7cfb74
commit
b7d549ae88
@ -157,7 +157,7 @@
|
|||||||
" temp_file_path = temp_file.name\n",
|
" temp_file_path = temp_file.name\n",
|
||||||
"\n",
|
"\n",
|
||||||
"loader = CSVLoader(file_path=temp_file_path)\n",
|
"loader = CSVLoader(file_path=temp_file_path)\n",
|
||||||
"loader.load()\n",
|
"data = loader.load()\n",
|
||||||
"for record in data[:2]:\n",
|
"for record in data[:2]:\n",
|
||||||
" print(record)"
|
" print(record)"
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user