SetBasedColumnMapExpectation
- class great_expectations.expectations.set_based_column_map_expectation.SetBasedColumnMapExpectation(configuration: Optional[great_expectations.core.expectation_configuration.ExpectationConfiguration] = None)#
Base class for SetBasedColumnMapExpectations.
SetBasedColumnMapExpectations facilitate set-based comparisons as the core logic for a Map Expectation.
Example Definition:
ExpectColumnValuesToBeInSolfegeScaleSet(SetBasedColumnMapExpectation):
set_camel_name = SolfegeScale
set_ = ['do', 're', 'mi', 'fa', 'so', 'la', 'ti']
set_semantic_name = "the Solfege scale"
map_metric = SetBasedColumnMapExpectation.register_metric(
set_camel_name=set_camel_name,
set_=set_
)- Parameters:
set_camel_name (str) – A name describing a set of values, in camel case.
set (str) – A value set.
set_semantic_name (optional[str]) – A name for the semantic type representing the set being validated..
map_metric (str) – The name of an ephemeral metric, as returned by register_metric(…).
- -Relevant Documentation Links -
- domain_type = 'column'#