Skip to main content
Version: devel

dlt._workspace.helpers.dashboard.utils.data_quality

Data quality dashboard helpers: controls, section widget, and raw table display.

create_dq_controls

def create_dq_controls(
pipeline: dlt.Pipeline
) -> Tuple[
Optional[mo.ui.checkbox],
Optional[mo.ui.dropdown],
Optional[mo.ui.slider],
Optional[pyarrow.Table],
]

View source on GitHub

Create data quality filter controls by importing from dlthub.

Returns (show_failed_filter, table_filter, rate_filter, checks_arrow). All None on failure or if dlthub is not available.

build_dq_section

def build_dq_section(
pipeline: dlt.Pipeline, show_failed_filter: Optional[mo.ui.checkbox],
table_filter: Optional[mo.ui.dropdown],
rate_filter: Optional[mo.ui.slider], checks_arrow: Optional[pyarrow.Table]
) -> Tuple[List[mo.Html], Optional[mo.ui.switch]]

View source on GitHub

Build the data quality widget section.

Returns (result_widgets, raw_table_switch). raw_table_switch is None when there is no data or on error.

build_dq_raw_table

def build_dq_raw_table(
pipeline: dlt.Pipeline, get_result: Callable[[], pyarrow.Table],
set_result: Callable[[pyarrow.Table], None]) -> List[mo.Html]

View source on GitHub

Build the raw data quality checks table.

Returns list of widgets to display.

This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.