mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-15 00:02:59 +00:00
add unit tests
This commit is contained in:
@@ -78,7 +78,7 @@ class LanceQueryBuilder:
|
||||
def to_df(self) -> pd.DataFrame:
|
||||
"""Execute the query and return the results as a pandas DataFrame.
|
||||
"""
|
||||
ds = self._table._dataset
|
||||
ds = self._table.to_lance()
|
||||
# TODO indexed search
|
||||
tbl = ds.to_table(
|
||||
columns=self._columns,
|
||||
@@ -89,4 +89,4 @@ class LanceQueryBuilder:
|
||||
"k": self._limit
|
||||
}
|
||||
)
|
||||
return tbl.to_pandas()
|
||||
return tbl.to_pandas()
|
||||
|
||||
Reference in New Issue
Block a user