tabulardelta.comparators.comparator module
- class tabulardelta.comparators.comparator.Comparator(*args, **kwargs)[source]
Bases:
Protocol
[T
]Protocol for offering table comparison logic for TabularDelta.
Ensures compatibility with all
Formatter
implementations.Methods
compare(old: T, new: T) -> TabularDelta:
Compare two tables
- compare(old: T, new: T) TabularDelta [source]
Compare two tables.
- Arguments:
- old
T
: The old table (first table to compare).
- new
T
: The new table (second table to compare).
- old
- Returns
TabularDelta
: Metadata and results of the comparison.