-
Notifications
You must be signed in to change notification settings - Fork 234
Labels
DocArray v2This issue is part of the rewrite; not to be merged into mainThis issue is part of the rewrite; not to be merged into main
Description
Would it be possible to import from other datasources like csv or pandas dataframe in docarray v2?
Possible API:
class MyDoc(BaseDocument):
price: float
name: str
date: Datedata.csv
price, name, date
1000, iphone, 2009
500, samsung, 2011
...
da = DocumentArray[MyDoc].from_csv('data.csv')
print(da[0])
>>> MyDoc(price=1000, name= iphone, date = 2011)Question:
Can we auto detect the schema from the csv ? Is it something that we even want ?
Metadata
Metadata
Assignees
Labels
DocArray v2This issue is part of the rewrite; not to be merged into mainThis issue is part of the rewrite; not to be merged into main
Type
Projects
Status
Done