DataFrameComparison.fraction_same#

DataFrameComparison.fraction_same(column: Literal[None] = None, /) dict[str, float][source]#
DataFrameComparison.fraction_same(column: str, /) float

Compute the fraction of matching values.

Parameters:

column – The column to compute the fraction of matching values for. If None (default), compute the fraction for all columns.

Returns:

A single float for the fraction or a mapping from column name to fraction, depending on the value of column. The mapping contains all common columns. It is empty in case there are no common (non-primary key) columns.