great_expectations.render.renderer.content_block.expectation_string

Module Contents

Functions

substitute_none_for_missing(kwargs, kwarg_list)

Utility function to plug Nones in when optional parameters are not specified in expectation kwargs.

great_expectations.render.renderer.content_block.expectation_string.substitute_none_for_missing(kwargs, kwarg_list)

Utility function to plug Nones in when optional parameters are not specified in expectation kwargs.

Example

Input:

kwargs={“a”:1, “b”:2}, kwarg_list=[“c”, “d”]

Output: {“a”:1, “b”:2, “c”: None, “d”: None}

This is helpful for standardizing the input objects for rendering functions. The alternative is lots of awkward if “some_param” not in kwargs or kwargs[“some_param”] == None: clauses in renderers.

class great_expectations.render.renderer.content_block.expectation_string.ExpectationStringRenderer

Bases: great_expectations.render.renderer.content_block.content_block.ContentBlockRenderer

classmethod _missing_content_block_fn(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_to_exist(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_unique_value_count_to_be_between(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_be_between(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_pair_values_A_to_be_greater_than_B(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_pair_values_to_be_equal(cls, expectation, styling=None, include_column_name=True)
classmethod expect_table_columns_to_match_ordered_list(cls, expectation, styling=None, include_column_name=True)
classmethod expect_multicolumn_values_to_be_unique(cls, expectation, styling=None, include_column_name=True)
classmethod expect_table_column_count_to_equal(cls, expectation, styling=None, include_column_name=True)
classmethod expect_table_column_count_to_be_between(cls, expectation, styling=None, include_column_name=True)
classmethod expect_table_row_count_to_be_between(cls, expectation, styling=None, include_column_name=True)
classmethod expect_table_row_count_to_equal(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_distinct_values_to_be_in_set(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_not_be_null(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_be_null(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_be_of_type(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_be_in_type_list(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_be_in_set(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_not_be_in_set(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_proportion_of_unique_values_to_be_between(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_be_increasing(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_be_decreasing(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_value_lengths_to_be_between(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_value_lengths_to_equal(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_match_regex(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_not_match_regex(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_match_regex_list(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_not_match_regex_list(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_match_strftime_format(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_be_dateutil_parseable(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_be_json_parseable(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_match_json_schema(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_distinct_values_to_contain_set(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_distinct_values_to_equal_set(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_mean_to_be_between(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_median_to_be_between(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_stdev_to_be_between(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_max_to_be_between(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_min_to_be_between(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_sum_to_be_between(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_most_common_value_to_be_in_set(cls, expectation, styling=None, include_column_name=True)
classmethod _get_kl_divergence_partition_object_table(cls, partition_object, header=None)
classmethod expect_column_quantile_values_to_be_between(cls, expectation, styling=None, include_column_name=True)
classmethod _get_kl_divergence_chart(cls, partition_object, header=None)
classmethod expect_column_kl_divergence_to_be_less_than(cls, expectation, styling=None, include_column_name=True)
classmethod expect_column_values_to_be_unique(cls, expectation, styling=None, include_column_name=True)