DataFrameComparison.equal_num_rows#
- DataFrameComparison.equal_num_rows() bool[source]#
Whether the number of rows in the left and right data frames are equal.
Examples
>>> import polars as pl >>> from diffly import compare_frames >>> left = pl.DataFrame({"id": [1, 2, 3], "value": [10.0, 20.0, 30.0]}) >>> right = pl.DataFrame({"id": [1, 2], "value": [10.0, 20.0]}) >>> compare_frames(left, right, primary_key="id").equal_num_rows() False