ColumnPairMapExpectation
- class great_expectations.expectations.expectation.ColumnPairMapExpectation(configuration: Optional[great_expectations.core.expectation_configuration.ExpectationConfiguration] = None)#
Base class for ColumnPairMapExpectations.
ColumnPairMapExpectations are evaluated for a pair of columns and ask a yes/no question about the row-wise relationship between those two columns. Based on the result, they then calculate the percentage of rows that gave a positive answer. If the percentage is high enough, the Expectation considers that data valid.
ColumnPairMapExpectations must implement a _validate(…) method containing logic for determining whether the Expectation is successfully validated.
ColumnPairMapExpectations may optionally provide implementations of validate_configuration, which should raise an error if the configuration will not be usable for the Expectation. By default, the validate_configuration method will return an error if column_A and column_B are missing from the configuration.
- Raises:
InvalidExpectationConfigurationError – If column_A and column_B parameters are missing from the configuration.
- Parameters:
domain_keys (tuple) – A tuple of the keys used to determine the domain of the expectation.
success_keys (tuple) – A tuple of the keys used to determine the success of the expectation.
default_kwarg_values (optional[dict]) – Optional. A dictionary that will be used to fill unspecified kwargs from the Expectation Configuration.
- domain_type = 'column_pair'#