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, batch_list: Optional[List[Batch]] = None, batch_request: Optional[Union[BatchRequest, RuntimeBatchRequest, dict]] = None, data_context: Optional[‘DataContext’] = 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
great_expectations.rule_based_profiler.parameter_builder.simple_date_format_string_parameter_builder.DEFAULT_CANDIDATE_STRINGS :Set[str]
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, batch_list: Optional[List[Batch]] = None, batch_request: Optional[Union[BatchRequest, RuntimeBatchRequest, dict]] = None, data_context: Optional['DataContext'] = 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.

property fully_qualified_parameter_name(self)
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.

return: Tuple containing computed_parameter_value and parameter_computation_details metadata.