DataFrameComparison.num_rows_left_only#
- DataFrameComparison.num_rows_left_only() int[source]#
The number of rows in the left data frame which cannot be joined with a row in the right data frame.
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_left_only() 1