forked from Archives/langchain
Fix typo in dataframe.py (#4786)
# Fix typo in dataframe.py (#4786) Fixed typo. ``` yeild -> yield ```
This commit is contained in:
parent
14bedf1cc5
commit
f5a476fdd4
@ -22,7 +22,7 @@ class DataFrameLoader(BaseLoader):
|
|||||||
def load(self) -> List[Document]:
|
def load(self) -> List[Document]:
|
||||||
"""Load from the dataframe."""
|
"""Load from the dataframe."""
|
||||||
result = []
|
result = []
|
||||||
# For very large dataframes, this needs to yeild instead of building a list
|
# For very large dataframes, this needs to yield instead of building a list
|
||||||
# but that would require chaging return type to a generator for BaseLoader
|
# but that would require chaging return type to a generator for BaseLoader
|
||||||
# and all its subclasses, which is a bigger refactor. Marking as future TODO.
|
# and all its subclasses, which is a bigger refactor. Marking as future TODO.
|
||||||
# This change will allow us to extend this to Spark and Dask dataframes.
|
# This change will allow us to extend this to Spark and Dask dataframes.
|
||||||
|
Loading…
Reference in New Issue
Block a user