Summary#
|
Generate a summary of all aspects of the comparison. |
- class diffly.summary.Summary(
- comparison: DataFrameComparison,
- show_perfect_column_matches: bool,
- top_k_column_changes: int,
- sample_k_rows_only: int,
- show_sample_primary_key_per_change: bool,
- left_name: str,
- right_name: str,
- slim: bool,
- hidden_columns: list[str] | None,
- metrics: Mapping[str, Metric] | None,
Container object for generating a summary of the comparison of two data frames.
Note
Do not initialize this object directly. Instead, use
DataFrameComparison.summary().
|
Format this summary for printing. |
|
Serialize this summary as a JSON string. |
Metrics#
The metrics argument of summary()
accepts a mapping from display label to a Metric callable. diffly.metrics
ships a set of presets.
- diffly.metrics.Metric#
A metric is a callable mapping
(left_expr, right_expr)to a scalar aggregation expression.The expressions refer to the left-side and right-side values of a single column across all joined rows.
alias of
Callable[[Expr,Expr],Expr]
|
Mean of |
|
Median of |
|
Minimum of |
|
Maximum of |
|
Standard deviation of |
|
Mean of |
|
Mean of |
|
Factory returning a metric that computes the |