Skip to content

summarizer

Summarizers: which summary steps run for each variable type.

Classes

BaseSummarizer

Bases: Handler

A base summarizer.

Can be used to define custom summarizations: map type names to lists of summary steps (see :func:polars_data_profiling.model.handler.compose).

Methods:

summarize(config, column, dtype, summary=None)

The plan that summarises column as a dtype variable.

ProfilingSummarizer

Bases: BaseSummarizer

The default summarizer.

Attributes

summary_map property

Allows users to modify the summary map after initialization.

Functions:

format_summary(summary)

Prepare summary for export to json file.

Args: summary: summary to export

Returns: dict: summary as dict

redact_summary(summary, config)

Redact summary to export to json file.

Args: summary (dict): summary to redact

Returns: dict: redacted summary