Python
Table of Contents
Section titled “Table of Contents”Installation
Section titled “Installation”To install the latest release from PyPI:
Load package:
List available namespaces and tables:
Lazily load a table (returns a DuckDBPyRelation object):
Filter columns and rows of lazy table using the DuckDB Relational API:
Convert to Polars DataFrame (triggers data download):
Or, convert to Pandas DataFrame (also triggers download):
Functions
Section titled “Functions”| Signature | Description | Returns |
|---|---|---|
list_namespaces() |
List namespace identifiers. | list[str] |
| `list_tables(namespace: str | None = None)` | List all tables, filtered to a namespace if specified. |
describe_namespace(name: str) |
Inspect namespace metadata. | dict |
describe_table(name: str) |
Inspect table metadata. | dict |
load_table(name: str) |
Lazily load the specified table identifier. | DuckDBPyRelation |