lancedb/lancedb
Vedi su GitHubfeat(python): support `DataFrame` or reader in `Table.add_columns()`
Open
#1959 aperta il 18 dic 2024
Pythonenhancementgood first issue
Metriche repository
- Star
- (10.303 star)
- Metriche merge PR
- (Merge medio 2g 17h) (82 PR mergiate in 30 g)
Descrizione
At the Rust level, we support readers/streams in add_columns():
https://docs.rs/lance/latest/lance/dataset/enum.NewColumnTransform.html
But in Python, we only support the SQLExpressions option:
We should add support for a reader (which can come from a DataFrame). Here's an example of a method that takes a reader:
In Python, we convert it into a PyArrow RecordBatchReader here: