Schema Comparison#
- class diffly.comparison.Schemas(
- left_schema: dict[str, DataType],
- right_schema: dict[str, DataType],
Container object providing information about the schemas of compared data frames.
Schema of the left data frame. |
|
Schema of the right data frame. |
|
|
Whether the schemas of the left and right data frames are equal. |
Columns that are present in both data frames, mapped to their data types in the left and right data frame. |
|
Columns that are only present in the left data frame, mapped to their data types. |
|
Columns that are only present in the right data frame, mapped to their data types. |
- class diffly.comparison.Schemas.Schema
Child container for the schema of a data frame.
- column_names() set[str]
The names of the columns.
- class diffly.comparison.Schemas.JointSchema
Child container for the joint schema of two data frames.
- column_names() set[str]
The names of the columns.
- matching_dtypes() Schema
The columns that have matching dtypes, mapped to the common dtype.
- mismatching_dtypes() Self
The columns that have mismatching dtypes, mapped to the dtypes in the left and right data frame.