Kedro integration
vizro.integrations.kedro
Functions to use the Kedro Data Catalog inside Vizro.
Usage documentation
catalog_from_project
Fetches a Kedro project's Data Catalog.
| PARAMETER | DESCRIPTION |
|---|---|
project_path
|
Path to the Kedro project root directory. If not specified then attempts to find a Kedro project in the current directory or above. |
| PARAMETER | DESCRIPTION |
|---|---|
**kwargs |
Keyword arguments to pass to
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
DataCatalog
|
Kedro Data Catalog. |
datasets_from_catalog
datasets_from_catalog(
catalog: DataCatalog, *, pipeline: Pipeline = None
) -> dict[str, pd_DataFrameCallable]
Fetches a Kedro Data Catalog's pandas dataset loading functions to use in the Vizro data manager.
| PARAMETER | DESCRIPTION |
|---|---|
catalog
|
Kedro Data Catalog.
TYPE:
|
pipeline
|
Optional Kedro pipeline. If specified, the factory-based Kedro datasets it defines are also returned.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
dict[str, pd_DataFrameCallable]
|
Mapping of dataset names to dataset loading functions that can be used in the Vizro data manager. |