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:
ono-hiroki 2024-11-04 23:10:56 +09:00 committed by GitHub
parent 3b0b7cfb74
commit b7d549ae88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)"
]