column_condition_partial.py
great_expectations.expectations.metrics.map_metric_provider.column_condition_partial.column_condition_partial(engine: Type[great_expectations.execution_engine.execution_engine.ExecutionEngine], partial_fn_type: Optional[great_expectations.core.metric_function_types.MetricPartialFunctionTypes] = None, **kwargs)
Provides engine-specific support for authoring a metric_fn with a simplified signature.
A column_condition_partial must provide a map function that evaluates to a boolean value; it will be used to provide supplemental metrics, such as the unexpected_value count, unexpected_values, and unexpected_rows.
A metric function that is decorated as a column_condition_partial will be called with the engine-specific column type and any value_kwargs associated with the Metric for which the provider function is being declared.
- Parameters
engine – The ExecutionEngine used to to evaluate the condition
partial_fn_type – The metric function
**kwargs – Arguments passed to specified function
- Returns
An annotated metric_function which will be called with a simplified signature.