Fix typo in dataframe.py (#4786)

# Fix typo in dataframe.py (#4786)

Fixed typo.
```
yeild -> yield
```
dynamic_agent_tools
Ikko Eltociear Ashimine 1 year ago committed by GitHub
parent 14bedf1cc5
commit f5a476fdd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,7 +22,7 @@ class DataFrameLoader(BaseLoader):
def load(self) -> List[Document]:
"""Load from the dataframe."""
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
# 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.

Loading…
Cancel
Save