Context
Calling the the from_csv method of a DocumentArray will return a new DocumentArray with the csv content loaded but will not modify the orignal DocumenArray inplace
from docarray import DocumentArray
da = DocumentArray()
da.from_csv(os.path.join(cur_dir, 'toydata/docs.csv'))
assert len(da) > 0 # This will faill da is still empty
This work though
from docarray import DocumentArray
da = DocumentArray()
da = da.from_csv(os.path.join(cur_dir, 'toydata/docs.csv'))
assert len(da) > 0 # This will faill da is still empty
Context
Calling the the
from_csvmethod of a DocumentArray will return a new DocumentArray with the csv content loaded but will not modify the orignal DocumenArray inplaceThis work though