great_expectations.rule_based_profiler.parameter_builder.simple_date_format_string_parameter_builder

Module Contents

Classes

SimpleDateFormatStringParameterBuilder(name: str, metric_domain_kwargs: Optional[Union[str, dict]] = None, metric_value_kwargs: Optional[Union[str, dict]] = None, threshold: Union[float, str] = 1.0, candidate_strings: Optional[Union[Iterable[str], str]] = None, data_context: Optional[‘DataContext’] = None, batch_list: Optional[List[Batch]] = None, batch_request: Optional[Union[BatchRequest, RuntimeBatchRequest, dict]] = None)

Detects the domain date format from a set of candidate date format strings by computing the

great_expectations.rule_based_profiler.parameter_builder.simple_date_format_string_parameter_builder.logger
class great_expectations.rule_based_profiler.parameter_builder.simple_date_format_string_parameter_builder.SimpleDateFormatStringParameterBuilder(name: str, metric_domain_kwargs: Optional[Union[str, dict]] = None, metric_value_kwargs: Optional[Union[str, dict]] = None, threshold: Union[float, str] = 1.0, candidate_strings: Optional[Union[Iterable[str], str]] = None, data_context: Optional['DataContext'] = None, batch_list: Optional[List[Batch]] = None, batch_request: Optional[Union[BatchRequest, RuntimeBatchRequest, dict]] = None)

Bases: great_expectations.rule_based_profiler.parameter_builder.parameter_builder.ParameterBuilder

Detects the domain date format from a set of candidate date format strings by computing the column_values.match_strftime_format.unexpected_count metric for each candidate format and returning the format that has the lowest unexpected_count ratio.

CANDIDATE_STRINGS :Set[str]
property metric_domain_kwargs(self)
property metric_value_kwargs(self)
property threshold(self)
property candidate_strings(self)
_build_parameters(self, parameter_container: ParameterContainer, domain: Domain, variables: Optional[ParameterContainer] = None, parameters: Optional[Dict[str, ParameterContainer]] = None)

Check the percentage of values matching each string, and return the best fit, or None if no string exceeds the configured threshold.

Returns

ParameterContainer object that holds ParameterNode objects with attribute name-value pairs and optional details