Skip to content

summaries

Summary steps: the statistics computed for each variable type.

Each step is a plan (see :mod:.engine): a generator that yields the lazy aggregations and queries it needs and fills summary with the results. The summarizer chains the steps of a type after those of its parent type (every type starts with :func:describe_counts, :func:describe_generic and :func:describe_supported).

Value counts are kept as plain dicts, most frequent first, and truncated: value_counts_without_nan holds the most frequent values and value_counts_index_sorted the smallest and largest. The totals (n_distinct, count) are exact.

Classes

Functions:

top_counts(lf, expr, k)

The k most frequent non-null values of expr as (value, count).

describe_counts(config, column, summary)

Missing values, distinct values and the value counts.

describe_generic(config, column, summary)

Number of values and the share of missing values.

describe_supported(config, column, summary)

Shares of distinct and unique values.

describe_numeric(config, column, summary)

Moments, quantiles, extremes, monotonicity and the histogram.

describe_date(config, column, summary)

Range of the dates and the histogram of their timestamps.

describe_boolean(config, column, summary)

Most frequent value and the class imbalance.

describe_categorical(config, column, summary)

Imbalance, goodness of fit, and length, character and word statistics.

describe_text(config, column, summary)

Length, character and word statistics of free text.

describe_url(config, column, summary)

Counts of each URL component (scheme, host, path, query, fragment).

describe_path(config, column, summary)

Counts of each path component, and the prefix shared by all paths.

describe_file(config, column, summary)

File sizes and timestamps (reads the file system).

describe_image(config, column, summary)

Image dimensions, truncation, EXIF data and duplicate hashes.

describe_timeseries(config, column, summary)

Seasonality, stationarity and gaps of a numeric time series.