mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 12:33:59 +00:00
## Summary - Complete the SQL reference: `ATTACH DATABASE`, the `CHANGES` clause, and `dedupe()`/`duplicate_pairs()` (verified against current sophon source; these were recently renamed from `vector_dedup`/`vector_duplicate_pairs`). Fix the blob-column default-projection claim and add the previously undocumented `blob_descriptor()`. - Enrich the gated Functions draft (still `.mintignore`'d, pre-release): chained Functions over blob outputs, GPU-produced blobs, Secrets, multi-input/output binding, `code=[module]` packaging. - Upgrade the materialized-view and computed-column auto-refresh drafts with precise, verified catch-up semantics, and add the missing `ALTER MATERIALIZED VIEW` / `CREATE ... WITH(...)` sections (also gated — the automatic-refresh scheduler is still dev/staging-only). - Thread one running example (video frames → GPU extract/caption → dedup → auto-refreshing materialized view) through Functions, materialized views, and the LeRobotDataset integration guide instead of a separate tutorial. - Rename "LanceDB OSS"/"OSS" to "LanceDB Embedded"/"Embedded" throughout (52 files); activate the existing availability-comparison mechanism on `basics/offerings.mdx` for a full feature-by-feature comparison table.
49 lines
1.5 KiB
Plaintext
49 lines
1.5 KiB
Plaintext
---
|
|
title: "Pandas and PyArrow"
|
|
sidebarTitle: "Pandas & PyArrow"
|
|
availability:
|
|
embedded: available
|
|
enterprise: available
|
|
---
|
|
|
|
import {
|
|
PyPlatformsPandasAsyncExample,
|
|
PyPlatformsPandasCreateTable,
|
|
PyPlatformsPandasImports,
|
|
PyPlatformsPandasVectorSearch,
|
|
} from '/snippets/integrations.mdx';
|
|
|
|
Because Lance is built on top of [Apache Arrow](https://arrow.apache.org/),
|
|
LanceDB fits naturally into Pandas-first workflows. You can ingest a `DataFrame`,
|
|
query it with LanceDB's vector operators, and keep working in Pandas without any glue code.
|
|
|
|
## Create a dataset {#create-a-dataset}
|
|
|
|
Start by importing LanceDB alongside your usual Pandas utilities and connect to a temporary database.
|
|
|
|
<CodeBlock filename="Python" language="Python" icon="python">
|
|
{PyPlatformsPandasImports}
|
|
</CodeBlock>
|
|
|
|
Use the familiar `pd.DataFrame` API to prepare your rows, then pass the entire frame to `db.create_table`.
|
|
|
|
<CodeBlock filename="Python" language="Python" icon="python">
|
|
{PyPlatformsPandasCreateTable}
|
|
</CodeBlock>
|
|
|
|
## Vector search {#vector-search}
|
|
|
|
Queries can return Pandas frames as well, so you can immediately inspect the results or pipe them into downstream analytics.
|
|
|
|
<CodeBlock filename="Python" language="Python" icon="python">
|
|
{PyPlatformsPandasVectorSearch}
|
|
</CodeBlock>
|
|
|
|
## Async API {#async-api}
|
|
|
|
For web services or background jobs that already rely on `asyncio`, use the asynchronous helpers to keep everything non-blocking.
|
|
|
|
<CodeBlock filename="Python" language="Python" icon="python">
|
|
{PyPlatformsPandasAsyncExample}
|
|
</CodeBlock>
|