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: Date
data.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 ?
Would it be possible to import from other datasources like csv or pandas dataframe in docarray v2?
Possible API:
Question:
Can we auto detect the schema from the csv ? Is it something that we even want ?