Add TableSchema.diff
method to understand the difference between two TableSchema objects
#1670
Labels
new feature
suggestions for new functionality
When passing around Woodwork dataframes, it is easy to lose track of some of the woodwork types, like feature origins or metadata, and because the table schema repr only shows column names, logical types, and semantic tags, it is hard to tell if other woodwork typing info has changed without going through all the relevant fields and directly comparing. It would be great if there was a Woodwork method to make this easier.
Code Example
We would need to come up with a design for what the output could be, but we could go as simple as just displaying all fields that are not equal and outputting the entire value, leaving it up to the user to determine what exactly is different. A more involved option would be to isolate the difference and display that specifically.
For consistency's sake, we should use this function to implement the
TableSchema.__eq__
method, which will make sure that these two always stay in sync.The text was updated successfully, but these errors were encountered: