Skip to main content

MulticolumnMapExpectation

class great_expectations.expectations.expectation.MulticolumnMapExpectation(configuration: Optional[great_expectations.core.expectation_configuration.ExpectationConfiguration] = None)#

Base class for MulticolumnMapExpectations.

MulticolumnMapExpectations are evaluated for a set of columns and ask a yes/no question about the row-wise relationship between those 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.

MulticolumnMapExpectations must implement a _validate(…) method containing logic for determining whether the Expectation is successfully validated.

MulticolumnMapExpectations 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_list is missing from the configuration.

Raises:

InvalidExpectationConfigurationError – If column_list is missing from 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 = 'multicolumn'#