analyze, configuration and reports¶
The typed, immutable API for one-shot analyses. See Configuration and one-shot analysis and Structured reports for how to use it.
analyze
¶
Analyze a dataframe and return a structured report in one call.
DataConsistencyConfig
dataclass
¶
DataConsistencyConfig(
iqr_limit: float = 3.5,
idr_limit: float = 1.0,
max_combinations: int = 100000,
verbose: int = 0,
known_date_cols: tuple[str, ...] = (),
execute_tests: tuple[str, ...] = (),
exclude_tests: tuple[str, ...] = (),
fast_only: bool = False,
include_code_tests: bool = True,
freq_contamination_level: int | float = 0.005,
rare_contamination_level: int | float = 0.1,
run_parallel: bool = False,
raise_on_error: bool = False,
)
DataConsistencyReport
dataclass
¶
DataConsistencyReport(
n_rows: int,
n_columns: int,
executed_tests: tuple[str, ...],
patterns: tuple[dict[str, Any], ...],
exceptions: tuple[dict[str, Any], ...],
row_scores: tuple[dict[str, Any], ...],
execution_failures: tuple[dict[str, Any], ...],
)
Serializable snapshot of one checker analysis state.