DataFrameComparison.num_rows_joined#

DataFrameComparison.num_rows_joined() int[source]#

The number of rows that can be joined, regardless of whether column values match in columns which are not used for joining.

Examples

>>> import polars as pl
>>> from diffly import compare_frames
>>> left = pl.DataFrame({"id": [1, 2, 3, 4], "value": [10.0, 20.0, 30.0, 40.0]})
>>> right = pl.DataFrame({"id": [1, 2, 3, 5], "value": [10.0, 25.0, 30.0, 50.0]})
>>> comparison = compare_frames(left, right, primary_key="id")
>>> comparison.num_rows_joined()
3