Schemas.in_common#
- Schemas.in_common() JointSchema[source]#
Columns that are present in both data frames, mapped to their data types in the left and right data frame.
Examples
>>> import polars as pl >>> from diffly import compare_frames >>> left = pl.DataFrame({"id": [1], "value": [10.0]}) >>> right = pl.DataFrame({"id": [1], "value": [10.0]}) >>> compare_frames(left, right, primary_key="id").schemas.in_common() {'id': (Int64, Int64), 'value': (Float64, Float64)}